Multiple Jump Problem
FatalCrest
Member Posts: 113
I'm having little trouble stopping my actor from doing multiple jumps, is there a way to prevent more than 1 jump?
*My actor responds to a button that tells him to jump if touched*
- Integers -
jumpTrigger (0 for off, 1 for on)
jumpAmount
when JumpButtonActor is touched, jumpTrigger = 1
when jumpTrigger = 1 my actor jumps then adds 1 to my jumpAmount int
when jumpAmount =1 i want my button to not respond to any touches until he lands
I need a little help!
*My actor responds to a button that tells him to jump if touched*
- Integers -
jumpTrigger (0 for off, 1 for on)
jumpAmount
when JumpButtonActor is touched, jumpTrigger = 1
when jumpTrigger = 1 my actor jumps then adds 1 to my jumpAmount int
when jumpAmount =1 i want my button to not respond to any touches until he lands
I need a little help!
Comments