Using Old Enemy.cpp

Hey, @StephenUlibarri
In this lesson, you’re using an old version of Enemy.cpp. If you’ll recall, we moved all the “toTarget” stuff to BaseCharacter.cpp, and are only setting velocity in Enemy::tick(). You might want to update the video here (and I guess in the video where you commented out that worldPos line).

1 Like

I know this is a day late and a dollar short. But thanks for pointing that out! In the grand scheme of things it doesn’t muck with code that was done prior to that point, but we understand the confusion it can cause.

1 Like

In the Universe of learning this is what causes CHAOS. :smiley:

3 Likes

Having had trouble a couple of videos ago, I caught this inconsistency right away. Thank you for this post as I was able to ignore what I was seeing and just listen to what he said about where I needed the code. This worked for me the first time without a single hiccup thanks to you.

1 Like

Privacy & Terms