FullCup
Member
I'm trying to make a platform collision (only from top to down / falling). Well, this code works but when the player collide with other platform inside, he ignores the bottom collision and he goes through it. I Tried to use 'instance_place' but it doesn't work. What i want is to check the collision of 'obj_platform' with '(x, y + vspd)' and also check '(x, y)' for the same instance that is colliding and not any 'obj_platform' instance. (English is not my main language).
GML:
//Checking
if place_meeting(x,y + vspd, obj_platform) and vspd >= 0
{
//Instance
var inst = instance_place(x,y + vspd, obj_platform);
//Collision
if !place_meeting(x,y, inst) and inst != noone
{
while !place_meeting(x ,y + 1, inst) y += 1;
vspd = 0;
}
}
Last edited: