Mr. SadGhost
Member
Hey guys I'm a real beginner when it goes to coding,
so this is pretty difficult for me, and I do need some help.
SO the idea is: that I want to make a panel that when it's clicked that it pops open(goes to the other sprite)
and when clicked again that it becomes small again(goes back to the original sprite)
I've given it a shot in the code below but it does not do what I want it to.
Do any of you legends know how to fix this problem, that would be awesome.
Thanks in advance
so this is pretty difficult for me, and I do need some help.
SO the idea is: that I want to make a panel that when it's clicked that it pops open(goes to the other sprite)
and when clicked again that it becomes small again(goes back to the original sprite)
I've given it a shot in the code below but it does not do what I want it to.
Do any of you legends know how to fix this problem, that would be awesome.
Thanks in advance
GML:
state = 0;
if state == 0 and mouse_check_button_released(mb_left)
{
sprite_index = citybarC_spr;
state = 1;
}
if state == 1 and mouse_check_button_released(mb_left)
{
sprite_index = citybar_spr;
state = 0;
}
Last edited: