getting the bird to keep on puking each time

Non-platform specific questions.

getting the bird to keep on puking each time

Postby yourownskills » Sat Apr 07, 2012 6:41 pm

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
yourownskills
 
Posts: 40
Joined: Thu Mar 22, 2012 5:02 pm
Score: 1 Give a positive score

Re: getting the bird to keep on puking each time

Postby skydereign » Sat Apr 07, 2012 9:33 pm

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.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron