Touch issue with scene

Stryfe01Stryfe01 Member Posts: 146
edited November -1 in Working with GS (Mac)
I am a bit frustrated at the moment. I'm sure it will work out to be something simple, but not quite sure at the moment. I have a scene that is basically a shooting gallery. When the targets are touched, they should be destroyed. For whatever reason, if you touch anywhere on the screen they are destroyed. The touch and destroy rules are only in the spawning targets, any suggestions?

Comments

  • quantumsheepquantumsheep Member Posts: 8,188
    This is a simple one I think.

    Check the rule that destroys the actor. It should be:

    When touch is pressed

    destroy actor.

    I imagine you have:

    When Mouse is pressed.

    Hope that helps,

    QS :D

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

  • Stryfe01Stryfe01 Member Posts: 146
    I have it both ways. When it's a web game, that may be the issue, but then how do you work it so that it's when the mouse is pressed within? I'll double check later, but I'm pretty sure it was doing the same thing when I ran the beta build of the game. I do have a when a touch is pressed.
  • chosenonestudioschosenonestudios Member Posts: 1,714
    Stryfe01 said:
    I have it both ways. When it's a web game, that may be the issue, but then how do you work it so that it's when the mouse is pressed within? I'll double check later, but I'm pretty sure it was doing the same thing when I ran the beta build of the game. I do have a when a touch is pressed.

    You just need touch is pressed (even if its web or on your computer) so get rid of all the mouse down rules and JUST use when touch is pressed

    Good Luck! :D
  • Stryfe01Stryfe01 Member Posts: 146
    Are you serious? I never tried before, but maybe that is an issue I am having with some other instances. The one rule of touch is pressed, works fine across the web preview and the actual iphone build?
  • chosenonestudioschosenonestudios Member Posts: 1,714
    Stryfe01 said:
    The one rule of touch is pressed, works fine across the web preview and the actual iphone build?

    Yes sir :D
  • quantumsheepquantumsheep Member Posts: 8,188
    Told you it was a simple one ;)

    QS

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

  • Stryfe01Stryfe01 Member Posts: 146
    Well it did fix the one issue :). Thanks guys! Now if that pesky title menu would stop crashing...
Sign In or Register to comment.