This is the room with the slopes, blocks and character in it.

And these are the 2 different types of slopes in the game. They both have objects called objSlopeR and objSlopeL.

And here's my character object, objChar's collision mask.

objChar's create event:
//Initialize the necessary variables.
move = 0;
maxMove = 8;objChar's step event:
//If the player is not pressing left OR right, decelerate accordingly.
if (!keyboard_check(vk_right)) && (!keyboard_check(vk_left)) {
if (move > 0) then move -= 0.5;
if (move < 0) then move += 0.5;
}
//If there is no solid object in his way, the character will accelerate and move either left or right.
if (place_free(x+move,y+0)) then x = x + move;
else {
if (move > 0) then move_contact_solid(0,maxMove);
if (move < 0) then move_contact_solid(180,maxMove);
move=0;
}
//If the player is pressing left, then the character moves and accelerates left. Likewise, pressing right makes the character go right.
if keyboard_check(vk_left) && (place_free(x-1,y)) {
move -= 2;
if (move < -maxMove) then move = -maxMove;
}
if keyboard_check(vk_right) && (place_free(x+1,y)) {
move += 2;
if (move > maxMove) then move = maxMove;
}
Now how would I program these slopes in? The only 2 slopes that will ever be in the game is objSlopeL and objSlopeR. Their sprites will never change from the above ones I posted.
Help would be greatly appreciated and credited :D
I would also be willing to return any favours you's need.
Thanks in advance.











