I have a creature that is moving randomly. When there is a collision it changes the direction, but after that it disappears. Can somebody tell me why and how can i fix this?
There is the code: http://www.codesend.com/view/54587302b7155066bfd8caac1c3ffa68/