D
Dibidoolandas
Guest
I'm working on a platformer, and I have an alarm on my bounce springs that tells them to shut off the "bounce" effect after a very short time so the player doesn't bounce to the moon (springvcollide.alarm[0] = room_speed/6
However, I now want to extend this to other movable objects like enemies, in case they land on the springs. Right now, the spring turns off the bounce effect by saying, "obj_player.bounce = false;" but really it should be [obj_that_bounced.bounce = false;]. Is there a way I can set the alarm and pass it an argument for what object id jumped on it? Thanks in advance.
However, I now want to extend this to other movable objects like enemies, in case they land on the springs. Right now, the spring turns off the bounce effect by saying, "obj_player.bounce = false;" but really it should be [obj_that_bounced.bounce = false;]. Is there a way I can set the alarm and pass it an argument for what object id jumped on it? Thanks in advance.