PlaceholderGames / 2016-VnD_Game

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

Sometimes the ants won't turn around #39

Closed elliotnaylor closed 7 years ago

elliotnaylor commented 7 years ago

Occasionally the ants won't turn around after stopping against a wall. But will then turn around when another ant hits a collision box and resets the direction boolean.

This issue rarely happens and I haven't found the main cause for it.

elliotnaylor commented 7 years ago

The issue actually stops the ant turning around when hitting a wall facing north and south if a collision box hasn't been hit

elliotnaylor commented 7 years ago

Ok so the entire system where the ant is hitting the wall is extremely faulty. I will have to rewrite it from scratch to make a better version.

For the sake of the first demo I am going to remove the faulty code and commit the working version. It is possible to use the directional blocks instead of the wall collision for now.

elliotnaylor commented 7 years ago

I improved on the code and now it is all working as expected.