- Home /
Question by
ChargedTester · Mar 16, 2017 at 08:29 PM ·
2dendless runnerteleportingsidescroller
Warping Up after jumping?
I am making a 2D endless auto-scroller. I am brand new to Unity and am trying to figure out how to code in C#, but I ran into a problem In the game, the player should be able to jump up, and then use a warp to gain a little bit more height (say, they warp 10 units up from their current position), or a combination of the two mechanics to traverse the environment. I have the code for warping and jumping individually, but I can't seem to figure out how to transform the position of the sprite relative to their current jumping position. If there is any function or float that I need to add, I can't seem to find it. Any help would be greatly appreciated.
Comment