• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!
  • Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

one way platform collisions stop working in HTML export

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?
 
Top