In game button problem

Billyd1Billyd1 Member Posts: 133
edited November -1 in Working with GS (Mac)
Hi posted something about this a few days ago. When you keep your finger on a button when changing scene it will stick and keep doing that movement, so I sorted that but putting change attribute to 0 when scene changed.

That sorted, but when your playing the game in a scene if you hold the button and drag it , it doesn't recognize I have took my finger off and carries on. I have put when button ''released'' change attribute to 0 but that doesn't work if you slide you finger across it.

Does anyone know a way I could fix this?

Comments

  • Billyd1Billyd1 Member Posts: 133
    ?
  • synthesissynthesis Member Posts: 1,693
    the logic sequence is the following (in 2 separate rules)

    when the button is "pressed"
    do this... (ie...make the function "true")

    when the button is "released"
    do this... (ie...make a new function "true")
    or
    stop doing what I was doing... (ie...make the original function "false")

    If you are changing a scene...
    once that is activated...all of the functions are dumped ... since you have changed the scene.
    if you want something to happen first...put the "changeScene" behavior inside a delay timer.

    Without knowing details about your issue...
    this is the best I can offer...hope it helps you.
  • Billyd1Billyd1 Member Posts: 133
    Sorry to bring this old topic up again, but I made a quick game to show my problem.

    http://gamesalad.com/game/play/47004

    If you press and drag off the button it doesn't recognize that you have released it and carries on moving. Is there a way to stop this?
  • design219design219 Member Posts: 2,273
    On your buttons, are you doing "mouse is inside" + "mouse is down" and have "if all are true" for the condition?
Sign In or Register to comment.