PlaceholderGames / 2016-VnD_Game

2nd year computer games development group project
2 stars 0 forks source link

Movement stutter #7

Closed elliotnaylor closed 7 years ago

elliotnaylor commented 7 years ago

The AI moves via a tick event. The problem is that the AIs movement will slow down heavily every tick. It's a minor bug at the moment but i'd like to find an alternative to the tick event.

elliotnaylor commented 7 years ago

Oops just realised I could just replace the tick with an event that triggers every time you collide with a node. I'll try this tomorrow

elliotnaylor commented 7 years ago

The above method worked perfectly.

Basically every time the player collides with a node it will set the next location and tell the AI to walk over to the location.

elliotnaylor commented 7 years ago

Ready for merging