"when touch is pressed" not working please help

POMPOM Member Posts: 2,599
edited November -1 in Working with GS (Mac)
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?

Comments

  • quantumsheepquantumsheep Member Posts: 8,188
    Another Pause related question! Is it Xmas????

    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 :D

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • POMPOM Member Posts: 2,599
    10 seconds! i can press it over and over BUT..
    if i don't touch it for 10 seconds it doesn't operate anymore! how come?!
    oh my
  • POMPOM Member Posts: 2,599
    ill try it. but hey, its just when touch is pressed - change attribute ,
    i mean, if this doesn't work, well... you know what im saying
  • quantumsheepquantumsheep Member Posts: 8,188
    Oh, I know...

    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

  • POMPOM Member Posts: 2,599
    i wish there was (is that correct english? there was?)
    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
  • quantumsheepquantumsheep Member Posts: 8,188
    Take out the 'I'm done' bit so that it works on just 'pressing' the button.

    Try it.

    QS :D

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • POMPOM Member Posts: 2,599
    still not working(after 10 seconds if i don't touch it) even when 'im done' is out..

    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..
  • POMPOM Member Posts: 2,599
    ok i just created a brand new actor with the same rules and it seems to work with it
    anyway thank you for trying to help me and for your time QS
  • quantumsheepquantumsheep Member Posts: 8,188
    No problem - sometimes it's those little quirks that can really sting!

    QS :D

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • SingleSparqSingleSparq Member Posts: 1,339
    I've found lately that when an actor seems to not be working, delete the actor from the scene and re-add it seems to fix it. Not sure why but something to remember I guess.
Sign In or Register to comment.