MaxLos
Member
Hihi,
So I finally got around to learning how to make moving platforms using one of Shaun's old tutorials. It works great but it has one "problem" that bothers me: if the player is standing on a moving platform that moves into a wall it kinda pushes the player a bit in that direction. Not a big deal, but again, it bothers me lol
Any idea how I would fix it? Thanks!
So I finally got around to learning how to make moving platforms using one of Shaun's old tutorials. It works great but it has one "problem" that bothers me: if the player is standing on a moving platform that moves into a wall it kinda pushes the player a bit in that direction. Not a big deal, but again, it bothers me lol
Code:
var hsp_final = hsp + hsp_carry;
hsp_carry = 0;
//Moving Horizontal Platforms
if place_meeting(x,y+1,obj_horizontal_platform)
{
var platform = instance_place(x,y+1,obj_horizontal_platform)
if (bbox_bottom + 1 = platform.bbox_top)
{
hsp_carry = platform.hsp;
}
}
//Standard collision code here..