Y
Yellowhill
Guest
I am making a 2d platforming game where the player character has a different height when attacking and jumping, which has lead to the player potentially getting stuck if jumping beneath a platform and attacking as his jump animation body is directly underneath the platform. I have not found a thread on this exact issue and trying the move_outside_solid command hasnt been able to solve things (unless I am doing it wrong.) Ideally I would like to resolve the issue rather than changing the animation. Any ideas?
the script I attempted to use in my collision check for this issue was
with (Obj_FloorTile)
{
if (place_meeting(x,y,other))
{
if other.solid
{
var pdir;
pdir = point_direction(other.x, other.y, x, y);
move_outside_solid(pdir, -1);
}
}
}
Any suggestions greatly appreciated
the script I attempted to use in my collision check for this issue was
with (Obj_FloorTile)
{
if (place_meeting(x,y,other))
{
if other.solid
{
var pdir;
pdir = point_direction(other.x, other.y, x, y);
move_outside_solid(pdir, -1);
}
}
}
Any suggestions greatly appreciated