B
Branden Skidmore
Guest
So I'm trying to make a button like how it is in undertale or the older zelda games.
Whenever I run the game in the Compile Errors it says
Object: obj_buttonA Event: Step at line 7 : malformed if statement
My code is below
Whenever I run the game in the Compile Errors it says
Object: obj_buttonA Event: Step at line 7 : malformed if statement
My code is below
Code:
image_speed = 0
if place_meeting(209,55,Frisk) {
image_index = 1
}
if (image_index = 0); {
audio_play_sound(snd_button_press,1,false)
if (image_index = 1) {
audio_stop_sound(snd_button_press)
}
}