i need help to create a jump button in mobile

briseft

  • Posts: 11
i have tried create this but any form it works , please help!!!

colburt187

  • *
  • Posts: 2389
Use the onscreen button behaviour that comes with stencyl. Make a button actor and attach it to the screen the add the behaviour too it.

briseft

  • Posts: 11
But it work whit the touch id?

colburt187

  • *
  • Posts: 2389
The on screen button behavior uses Touch ID yes.

briseft

  • Posts: 11
thak you i go to try it



briseft

  • Posts: 11
i try it but when i use the jump button and the joystick it not works

colburt187

  • *
  • Posts: 2389
Does you character jump when you press up or something on the keyboard when testing in flash? If yes then all you need to do is make a actor called the jump button, then attach the on screen button behavior and tell the behavior what the jump key is.

briseft

  • Posts: 11
hi colburt , i do that but when i test my game in mobile it crash when i touch the scrren with the on screen button behavior , something idea??