GameMaker: Studio

GameMaker: Studio

尋找、遊玩和輕鬆的製作遊戲
發現,評分,以及免費下載玩家利用 GameMaker: Studio 所創作出來的最佳遊戲。 或者是創造屬於您的遊戲並與社群分享。 點擊 這裡 了解更多。
Abomm 2012 年 11 月 25 日 上午 8:13
Dealing with ramps in a platformer
I want to make a ramp (not like a skateboard with gravity and increasing speed but more like walking normally at 45* degree) and I looked at the tutorials that suggest: (in not really code)

If the space to the right is not free but the space to the right just above that is free then jump there.

This poses a few problems:
1- This eliminates speed from my game so I will not be able to do speed calculations
2- This does not solve going down ramps as that makes it so that the character goes airborne for short times and does not feel very polished

Is there a way I can a) incorporate speed variables while using jump functions OR b) use a combination of hspeed, vspeed and gravity to go up and down ramps smoothly?