Page 1 of 1

getting the bird to keep on puking each time

PostPosted: Sat Apr 07, 2012 6:41 pm
by yourownskills
I have a problem, I have an enemy thats a bird, he has two animations....one is him opening his mouth...one is him with his mouth shut...

I have a collision that the player uses to get a worm to create upon contact from the birds mouth......now that all works when i hit it once but when i leave the collision and then come back to it, it doesnt play again...not sure why...

http://s93.photobucket.com/albums/l74/s ... blem-1.jpg

yourownskills

Posts: 19
Joined: Thu Mar 22, 2012 5:02 pm

Re: getting the bird to keep on puking each time

PostPosted: Sat Apr 07, 2012 9:33 pm
by skydereign
That's because you never set the variable birdeating to 0. After the first collision, you set it to 1, and it must be 0 for the animation to change. So perhaps in an animation finish event, set it back to 0.