• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

GML Visual Help with Slopes in platformer

Z

Ziliock

Guest
I found this in a tutorial:
If X-4 is collision free(Relative)
[Jump to X-4(Relative)]
else
[If Y-2 and X-2 is collision free(Relative)
[Jump to Y-2 and X-2 (Relative)]
]
But it gets stuck some times and it doesn't work for the down way in the slope, just for the way up
 
Top