S
Ssnakee
Guest
Alright, so I am working on a platformer game in which you play as a slime and make your way through levels.
I am using a heavily modified version of Shaun Spalding's code.
I have many different sprites that I switch between, however I gave them all the same collision box. (Modified).
I suspect that the issue may be due to how as it is mentioned in the tutorials about centering the origin, and since my character does not take up the entire area and is at the bottom of the 32x32px square perhaps this messes up the collision.
You only seem to get stuck if you hit the wall at exactly the corner of it.
However, another problem seems to have arisen is slopes. they work okay with precise collision, but hitting them in the center on an angle causes you to teleport to where you began your jump (Only slopes on roof).
I will attempt to center the character sprite and return and mark as solved if i fix it.
I am on Gamemaker:Studio 1.4.9999.
I am using a heavily modified version of Shaun Spalding's code.
I have many different sprites that I switch between, however I gave them all the same collision box. (Modified).
I suspect that the issue may be due to how as it is mentioned in the tutorials about centering the origin, and since my character does not take up the entire area and is at the bottom of the 32x32px square perhaps this messes up the collision.
You only seem to get stuck if you hit the wall at exactly the corner of it.
However, another problem seems to have arisen is slopes. they work okay with precise collision, but hitting them in the center on an angle causes you to teleport to where you began your jump (Only slopes on roof).
I will attempt to center the character sprite and return and mark as solved if i fix it.
I am on Gamemaker:Studio 1.4.9999.