Hi I have one question, I am working on a 2D sidescroller and i havn’t to modify my jumping script.
I want to make the character fall much faster, the gravity mechanic does not really work since this also affects my jumping hight etc.
So what I want to do is check the position of my character when he is jumping and as soon as the Y position which is increasing when he is jumping goes down again the gravity should apply. (Hope you understand wht I mean)
This should be done in Javascript. I guess it should somehow work with transform.position or so…
I am not asking for you to write me a script I just want to know how to check when the Y position is going down again. Since I have different plattforms on different hights I cannot set a fix value on how high achar can jump, therefore i need to check when is the position getting a negativ value (character is falling)