How to accidentally stop pickup up two sprites at once?

etheridgeetheridge Member Posts: 12
edited November -1 in Working with GS (Mac)
Hi all.
I'm making this game where you have to put cretin sprites at a position on the screen, however at points some sprites overlay as they walk.

How could I stop picking them both up if they are currently overlapping?

Any help would be really appreciated!!
Jase.

Comments

  • UtopianGamesUtopianGames Member Posts: 5,692
    We used a rule for each Bump to see if its being touched for eg in the rule for Red... if touch is pressed & game.movingBlue is false game.movingRed=true otherwise game.movingRed=false

    This way even if they are overlapping you will only pick one object up.

    Hope this helps.

    Darren.
  • etheridgeetheridge Member Posts: 12
    Hi Darren.

    Thanks for your help, I think I'm being a complete simpleton but I'm not getting it (blush).
    HELP... Please :-)

    Cheers!!
    Jase.
  • reddotincreddotinc Member Posts: 653
    Let me try and lay it out :)

    Attribute1 (can we move actor 1?)
    Attribute2 (can we move actor 2?)

    Now on actor 1:

    RULE
    If actor receives event > touch > is pressed
    AND Attribute1 = false

    Then

    Attribute2 = true

    Otherwise

    Attribute1 = true

    Have that on both actors, but change the if statement to match the correct actor :)

    Hope that helps

    // Red Dot Imc
  • UtopianGamesUtopianGames Member Posts: 5,692
    Saved me trying to explain it lol.

    Darren.
  • etheridgeetheridge Member Posts: 12
    Awesome thanks guys!
Sign In or Register to comment.