I�ve made some vertically moving platforms in my game using the "sine" function but it wont work properly.. on the way down player gets in falling state and on the way up there�s very glitchy jumping. Searched the forum for post but none presented a sollution.
Develop games in your browser. Powerful, performant & highly capable.
Hi MonDieu,
scirra.com/forum/platformer-jumps-on-vertical-moving-platform_topic47845.html
Here is the relevant link.
To find it i just typed " C2 verticle platforms" in the search, :) first one on the list.
(Edit: whenever im looking for anything to do with C2 i always put it at the beginning of the search.)
yes I found that one before.. don?t like the idea of having to use a third button to jump on V-platforms
And how do you intend to control your character if you don't use three buttons ?
using the default platform movement.. arrow keys, press up to jump, with this i�ll have to use up + another key to jump while on a v-platform.. or am I missing something? If so, sorry that I missed it but please tell me :)
You just "shortcut"/intercept the user's input, and handle it with a keyboard plugin by yourself.
So you handle when the player presses the left arrow key, the right arrow key and the up arrow key.
Still three buttons, as by default.
Check out the page 5 of the how to make a platform game tutorial.