H
HenrikoNumberOne
Guest
Hello! I am trying to create a 2D platformer with jump-through platforms (in the shape of square boxes). However, these boxes have gravity which makes them fall through the ground if I set their masks to "nothing" whenever you are trying to jump through them (using the method shown here).
This is the script I used;
Is there a way to fix this problem?
Thanks in advance!
This is the script I used;
Code:
with obj_platform
{
if other.bbox_bottom < bbox_top
mask_index = -1;
else mask_index = sprite_index;
}
Thanks in advance!