i am trying to make a system which allows user to jump when they bump into an obstacle but cant figure out any one can help?
No its entirely mine code using byond built in pixel movement and I think you didn't got what I am trying to do I am trying to make that if user bump into densed turf they will jump over it something like pokemon
|
Yeah, he got what you wanted. I recommend using forum_account's Pixel Movement library. It handles this for you, and all you have to do is write the code Kaiochao mentioned above.
|
One method to do this in the "Pokemon style" ridges where they don't actually have a third-dimension to "jump" within is to simply play a "hop" animation. You can also use Enter() to determine if they're approaching from the correct direction like in Pokemon.
Here's an example implementation. You were rather vague, so I took some liberties: turf |
Something like that.