Sign in to follow this  
JavaMava

Scrolling game, enemies move oddly when character runs.

Recommended Posts

Okay so If my main character is standing still my enemies move perfectly fine. Right now I've got an enemy that just moves from the right to the left of the screen. However if my character runs right they move slower and eventually in reverse once my character is at max speed. If I move left they speed up. Any ideas why this would happen?

Share this post


Link to post
Share on other sites
Wow sorry, it was just one of those stupid bugs. I accedntally sent my AI class the characters y1 twice instead of his y1 and x1, lol.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this