"when touch is pressed" not working please help
POM
Member Posts: 2,599
hey all im having a problem (with a very silly thing i must say)
im running tests for my first game and fixing bugs before publishing..
and this wird thing came up, i have a pause button say that-
when touch is pressed AND when attribute "im done" is false change :
"pause game" to: (pause game+1)%2
simply when its 1 things freeze, when 0 : you can play.
i can press this button as much as i want if i start the game but after couple of seconds
it stops function! its like it doesn't recognize press anymore!
"im done" is still false, so why is this happening?
i went through the code over and over and found no reason, any suggestion?
im running tests for my first game and fixing bugs before publishing..
and this wird thing came up, i have a pause button say that-
when touch is pressed AND when attribute "im done" is false change :
"pause game" to: (pause game+1)%2
simply when its 1 things freeze, when 0 : you can play.
i can press this button as much as i want if i start the game but after couple of seconds
it stops function! its like it doesn't recognize press anymore!
"im done" is still false, so why is this happening?
i went through the code over and over and found no reason, any suggestion?
Comments
Seriously though, I don't know why that would stop functioning. I *have* noticed little things going wrong in GS for no reason. For example, the music that starts up at the start of my game 'skips' a bit when it begins. For no apparent reason.
Perhaps GS can look into these little bugs?
In the meantime, try taking your button out of the scene and then putting it in again fresh. I've heard that sometimes help fix some issues...
Hope that helps,
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
if i don't touch it for 10 seconds it doesn't operate anymore! how come?!
oh my
i mean, if this doesn't work, well... you know what im saying
Is there anything on a timer after 10 seconds have elapsed that might conflict with it somehow?
Long shot I know...
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
anyway i still cant find any conflict with other actors, the only connection to other actors is the rules (inside the other actors) that all are in one big rule that says:
when "pause game" = 0
ruls apply, that is the only connection
Try it.
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
i tried to move the actor to different positions in case of some collisions or overlapping
(but it has no such rules) and yet if i dont touch it for 10 seconds it stops working..
honestly, i dont know how to fix it..
anyway thank you for trying to help me and for your time QS
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io