Jumping on a slope.

99 views
Skip to first unread message

Microbe Microbe

unread,
Apr 18, 2013, 4:37:25 PM4/18/13
to mel...@googlegroups.com
Hello !
I'm still adapting the example code given in the MelonJS package called "Platformer" (the last one on this page: http://www.melonjs.org/gallery.html )

So my question is: when we are on a slope, we can jump only if no direction key is pressed. In that example, slope are only one tile sized, so it is not annoying, but in my game, i'm makin bigger slopes.

Were too look to modify that possibility ?

Thanks

Jason Oster

unread,
Apr 19, 2013, 2:55:52 AM4/19/13
to mel...@googlegroups.com
Hi!

This was fixed in 0.9.7 already. Here's the solution: https://github.com/melonjs/melonJS/commit/e059de4cf40a11254c81556c43e4d97e81b05f37

Microbe Microbe

unread,
Apr 19, 2013, 1:13:35 PM4/19/13
to mel...@googlegroups.com
Thanks a lot !
Now i can use slopes on my game !
Reply all
Reply to author
Forward
0 new messages