Ever wanted to make a sloped platformer? Want your player to turn to the angle of the slope, and modify their speed and movement direction based on the angle of the ground? Those angles are tough aren't they, how do you find them on a random drawn shape?
Well struggle no more, with these scripts you will be able to find the surface angle of any shaped terrain that your player is touching. There are many ways to do this, this is simply one of them.
Rule: Ensure any curved (non-rectangular) mask/sprite has a precise collision mask. Demo controls: Move 'player' object with arrow keys. Use mouse to move a circle collision block.
Does not include a platformer engine.
Better demo controls and precision option.
Version 3.0.0. Published August 21, 2014
Created with GameMaker: Studio v1.4.1398
You can only review assets you've bought.
What do you do?
the sprite for the player doesnt rotate
does what its supposed to with minor tweaking!
I got this working with another platformer asset in the market place that after I added sloped movements, I used this with some minor tweaks to rotate the character based on the angle of the hill!
Code is simple and clean highly reccomend!