Ghost jump

jol

  • *
  • Posts: 174
Hello,

I would like to include a ghost jump in my platformer but I don't know how I can check if the input has been pressed x sec ago?
Thank you.

colburt187

  • *
  • Posts: 2411
I'm not sure I know what a ghost jump is, but if you want to check if an input was pressed you could put a 'do after' block on the When Button is Pressed event. When Space is pressed, do after 0.5second, create ghost.

jol

  • *
  • Posts: 174
For better explanation I would like two things :

- The avatar may be able to jump even if he don't touch the ground after  0.Xsec (but he should not be able to jump if he is already jumping)
-The avatar should jump as soon as he touch the ground if the jump key is pressed 0.Xsec  before he land.

I tried to tweak the jump and run behavior and the "on ground" behavior with no success so far :/.