How to make a character "jump" when leaving an up slope?
I have developed a game in Android using a tile-based system. I´ve implemented 22º, 45º and 67º up and down slopes and everything works (almost) perfect. The problem now is that, when the character gets to the end of an up slope, it justs falls until it founds the ground and what I want is that it perfoms some kind of parable depending on the slope and its speed. I think it´s better explained in the picture (http://postimg.org/image/k9dsk9tw1/)
I I already have a function that determines whether or not the character is leaving the slope, I just want some ideas of how to achieve that kind of "jump" in some pseudo-code or explanation because I don't know how to start. Any help would be appreciated.
I have developed a game in Android using a tile-based system. I´ve implemented 22º, 45º and 67º up and down slopes and everything works (almost) perfect. The problem now is that, when the character gets to the end of an up slope, it justs falls until it founds the ground and what I want is that it perfoms some kind of parable depending on the slope and its speed. I think it´s better explained in the picture (http://postimg.org/image/k9dsk9tw1/)
I I already have a function that determines whether or not the character is leaving the slope, I just want some ideas of how to achieve that kind of "jump" in some pseudo-code or explanation because I don't know how to start. Any help would be appreciated.
No comments:
Post a Comment