V
ViceVersa
Guest
i have a platformer game, with one way platforms in it. This code runs perfectly fine when tested in the windows version, and collisions still work regularly with the floor object, but my oneway platforms just stopped working all together. I have a floor object the player is checking collision with, and the one way platform is a child object of that. The step event code is
if (instance_exists(obj_MegaDude))
{
if((obj_MegaDude.y + (obj_MegaDude.sprite_height/2)))> ((y - sprite_height / 2)|| keyboard_check(vk_down))
{
mask_index = -1;
}
else
{
mask_index = spr_jug;
}
}
does anybody have any ideas on how i can fix this?
if (instance_exists(obj_MegaDude))
{
if((obj_MegaDude.y + (obj_MegaDude.sprite_height/2)))> ((y - sprite_height / 2)|| keyboard_check(vk_down))
{
mask_index = -1;
}
else
{
mask_index = spr_jug;
}
}
does anybody have any ideas on how i can fix this?