E
EZTALES
Guest
hey yall.
just having a small issue with destroying an object in the next room, im using a level system so when you reach a certain level, some things are deleted. heres the code. and yes the room uses physics.
/// room end
with (obj_player_stats) {
if level = 2
{ audio_stop_sound(sad_snowfall)
audio_play_sound(snd_snowfall_sadder,1,true)
instance_destroy(obj_textbox_18)
instance_destroy(obj_human_4)
}}
with (obj_player_stats) {
if level = 1
{ audio_stop_sound(snd_snowfall_sadder)
audio_play_sound(sad_snowfall,1,true)
}}
any help would be fantastic :}
just having a small issue with destroying an object in the next room, im using a level system so when you reach a certain level, some things are deleted. heres the code. and yes the room uses physics.
/// room end
with (obj_player_stats) {
if level = 2
{ audio_stop_sound(sad_snowfall)
audio_play_sound(snd_snowfall_sadder,1,true)
instance_destroy(obj_textbox_18)
instance_destroy(obj_human_4)
}}
with (obj_player_stats) {
if level = 1
{ audio_stop_sound(snd_snowfall_sadder)
audio_play_sound(sad_snowfall,1,true)
}}
any help would be fantastic :}