C
captpman
Guest
I feel like such an idiot, but I don't know what to do. Someone please help.
So I set up an object that's supposed to change between views when the space bar is pressed. I created a step event and put in an execute code action. After digging through a few pages of the manual, I created this bit of code:
I placed the object in the room and began running the game. It didn't work. As far as I could tell, when I pressed the space key it wasn't working, and view[0] stayed visible while view[1] didn't. What am I supposed to do?
So I set up an object that's supposed to change between views when the space bar is pressed. I created a step event and put in an execute code action. After digging through a few pages of the manual, I created this bit of code:
Code:
if(keyboard_check_pressed(vk_space)){
if(view_visible[0]){
view_visible[1]=true;
view_visible[0]=false;
}
if(view_visible[1]){
view_visible[0]=true;
view_visible[1]=false;
}
}