Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - gamedevse

Pages: [1]
1
I posted this question on Unity Q&A before realizing there was a forum here.

I was using AddForce for my character's jumps, but someone recommended I use DOTween instead. I can get DOJump to work pretty well when two platforms are on the same y axis, but what I want is for my character to jump from a lower platform to a higher platform.

I tried making a Vector3 (nextPlatform) with the x value of the character when it's on the platform, a y value higher than the platform, and a z value of zero (since it's 2D):

       transform.DOJump(nextPlatform, 1, 0.3F, false);

The character doesn't land on the platform when the platform is raised, but when I move the same platform down, it lands just fine. How can I get the character to jump up to a higher platform?

(On a side note, I wasn't sure if I should use .SetEase possibly as well.)


Pages: [1]