If a button is clicked while it is not enabled - it runs the event as soon as it is enabled
sokaroka
Member Posts: 9
Here's the screen.
http://puu.sh/2Y0or.jpg
The three objects highlighted on the game screen are buttons.
When you click the play button all the hills scroll across to be on screen.
When you click play a timer also activates.
After a 3 second wait, the variable "buttons" = 1 from 0.
Then down the bottom you can see my logic for the buttons.
The buttons are only supposed to change the scene if play is 1.
However, if you click on screen where a button is before clicking play, then you click play, the scene changes as soon as buttons changes to 1.
In my head this is not how logic works.
Does this mean if you click a button and it checks false, so it does not change scene, it loops CONTINUOUSLY FOREVER until it is true, and then runs the following events?
Is this a bug orrr.....what can I do to fix it?
http://puu.sh/2Y0or.jpg
The three objects highlighted on the game screen are buttons.
When you click the play button all the hills scroll across to be on screen.
When you click play a timer also activates.
After a 3 second wait, the variable "buttons" = 1 from 0.
Then down the bottom you can see my logic for the buttons.
The buttons are only supposed to change the scene if play is 1.
However, if you click on screen where a button is before clicking play, then you click play, the scene changes as soon as buttons changes to 1.
In my head this is not how logic works.
Does this mean if you click a button and it checks false, so it does not change scene, it loops CONTINUOUSLY FOREVER until it is true, and then runs the following events?
Is this a bug orrr.....what can I do to fix it?
Comments
Send and Receive Data using your own Server Tutorial! | Vote for A Long Way Home on Steam Greenlight! | Ten Years Left
Was there something wrong with my logic, or is it a bug?
Send and Receive Data using your own Server Tutorial! | Vote for A Long Way Home on Steam Greenlight! | Ten Years Left
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS