playMaker

Author Topic: iOS Touches count help!  (Read 797 times)

rizwanash

  • Junior Playmaker
  • **
  • Posts: 61
iOS Touches count help!
« on: June 19, 2019, 08:02:17 PM »
Hey Guys,

I have a game where Player Jumps on a Touch which is Implemented already and works just fine, User Tap on Screen and Character Jumps once and it goes to detect collision of the platform before going to second jump, That way i have setup Single jump function in my game.

What i would like to add more now is on First Touch User Jumps and then Touches after that First touch Character Fire bullets on enemies as much as possible until it lands on the floor back and then It goes back to the same Loop you have to Jump first in order to fire, So it should not fire from Platform but only when in the air. I cant figure this one out so far.

Any Help would be highly appreciated!
Thanks very much

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: iOS Touches count help!
« Reply #1 on: July 18, 2019, 03:07:18 AM »
Hi,

 you need to broadcast events about the jump context, so send "JUMP / ON STARTED" and "JUMP / ON ENDED" to indicate when jump started and ended.

 then another fsm can listen to them two events and while in between these two event accept firing input.

Bye,

 Jean