F
floatingonthewater
Guest
Hi Everyone,
I've been following along with the Space Rocks Tutorial and have a question about alarms.
In the tutorial the instructor makes an alarm in obj_game, then calls that alarm in the collusion event of obj_ship. This works just as it should, but I was experimenting with creating the alarm in the obj_ship, but was confused as to why I couldn't get it to work.
Image #1: alarm[1] was created in obj_game (not shown), and works just fine when called.
Image #2: The alarm was created instead in obj_ship, but for some reason it doesn't work.
Could anyone clarify? I also tried with(obj_ship) in the second example to see if that would help, but no luck.
Thank you!
I've been following along with the Space Rocks Tutorial and have a question about alarms.
In the tutorial the instructor makes an alarm in obj_game, then calls that alarm in the collusion event of obj_ship. This works just as it should, but I was experimenting with creating the alarm in the obj_ship, but was confused as to why I couldn't get it to work.
Image #1: alarm[1] was created in obj_game (not shown), and works just fine when called.
Image #2: The alarm was created instead in obj_ship, but for some reason it doesn't work.
Could anyone clarify? I also tried with(obj_ship) in the second example to see if that would help, but no luck.
Thank you!
Last edited by a moderator: