Jump with no gravity parabolic style

Thanks Ed! :slight_smile:
I will try this.

I almost suceeed.

I have a problem that update function is called in Runtime.

And therefore before I cancell calling junpPlayer transition.to is called 5-6 times.
I cancell this with variable and if statement.

So basically Runtime is faster then changing variable from true to false…
That is my current problem.

G

I’m unclear on what you’re saying here, but I sense a confusion about things like:

  • ‘enterFrame’ listener (‘enterFrame’ is a Runtime event)
  • maybe touch listeners, if you are using them you may not be doing so correctly.
  • scope 
  • transition.to() and when it executes/updates versus your own code, as well as when onComplete occurs.

You’d be best off either:

  1. Posting a well formatted snippet of your code that is giving you trouble. 

  2. Posting all of your code on drop box or elsewhere and asking for community help reviewing it for issues.

I would do this (#2) as a new forum question and I’d give this synopsis:

a. what you’re trying to do (i.e. your goal)

b. what you’re seeing 

c. what you expect to see. 

Thanks Ed.

I opened new post here:

https://forums.coronalabs.com/topic/63751-jump-no-gravity/

G