M
mzn528
Guest
Hello guys! I have a question regarding collisions, so for my game, I have two objects relevant to this issue:
Now that I incorporated falling damage, it adds a fake sense of height, therefore when my player falls from a platform with higher Y position, it is supposed to fall through the invisible bound and landed onto the ground to take falling damage.
But with my current set up, it falls straight onto the invisible bound and cannot get past it to the ground awesome demonstration here
My question is then:
Thank you so much!
- obj_bound: invisible bound restricting where player can go.
- obj_ground: ground obj, player can only walk on obj_ground.
Now that I incorporated falling damage, it adds a fake sense of height, therefore when my player falls from a platform with higher Y position, it is supposed to fall through the invisible bound and landed onto the ground to take falling damage.
But with my current set up, it falls straight onto the invisible bound and cannot get past it to the ground awesome demonstration here
My question is then:
- Can I do something to the collision event to have the player object ignore the collision and fall through the obj_bound object when it's in a certain state?
- Can I hard code the collision event in my step event? I tried something like: if(place_meeting(x, y + 2, obj_bound) || place_meeting(x, y - 2, obj_bound) || place_meeting(x+ 2, y, obj_bound) || place_meeting(x - 2, y, obj_bound)) {speed = 0} But it does not work and everytime I have player dash with motion_set, my player will get stuck in the invisible bound.
Thank you so much!
Attachments
-
9.7 KB Views: 14