"Otherwise" still not working?

gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
edited January 2012 in Working with GS (Mac)
Hi, either the Otherwise in the Rules aren't working again or I'm going mad.... (don't answer that....!)

Actually please answer if you know. I've got a straightforward Rule in one of my projects and for the life of me I can't see what's going wrong...where I've gone wrong...after all this time... ;-)

Rule:
When touch is pressed AND
When actor overlaps or collides with actor of type Spawned
Play Sound A

Otherwise
Change Attribute game.MASTER List 01 to game.MASTER list 01.."\r"..game.NextItem
Play Sound B
Spawn actor Spawned --- which greys out the actor just pressed

Any help appreciated, thank you.

Oh yes, what happens: the actor button is greyed out (meaning the actor Spawned has been spawned) and now it's overlapping with my button (although as I say, shouldn't be there until the button is first clicked) the Sound B doesn't Play although, strangely, it still spawns new actors called Spawn...

""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

Comments

  • HoneyTribeStudiosHoneyTribeStudios Member Posts: 1,792
    The update works fine for me. Not experienced any broken rules so far. Thats going from 0.9.8.2 to the new one.
  • POMPOM Member Posts: 2,599
    Your initial rule says if pressed AND overlap play sound A otherwise play sound b and spawn "spawned"

    So if you don't press the actor , it will go to the otherwise section (and spawn "spawned"). like you say it does , and as expected

    Unless I'm missing something .. ;)

    Roy.
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    Seems like they need to be two different rules.
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    edited January 2012
    Hi, thanks guys, and sorry I wasn't clear, the overlap Rule is inside/separate from the Touch Rule... that's why I'm a bit confuzzled by it's behavior....

    (Although I've just re-read my first post with the AND... I wasn't thinking, this is how I did it first then realised that it wouldn't work so needed 2 rules s you say... but I say again, still not working...

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • POMPOM Member Posts: 2,599
    edited January 2012
    Hey gyro , can you post an image of this section of the code?

    Roy.
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Sure thing Roy, thanks. I'll get onto that right now. I'll be back....

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    I must be getting tired... or old... or stoopid...!! I put the otherwise rules in the wrong Otherwise. D'oh and double d'oh. :-}

    So no need for the image grab but thanks again all the same, Roy. :-)

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • POMPOM Member Posts: 2,599
    Cheers gyro , it happens to the best of us ;)
    Go to sleep !!

    Roy
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Cheers, good advice I'm thinking!

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • GLGAMESGLGAMES SingaporeMember Posts: 988
    yuh same thing i experienced and realise the otherwise rule doesn't do the opposite of the one you stated above. "otherwise" in GS is rather like "else if" in programming. so i would suggest always make a seperate rule for touch release after that :P
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Yes, you're right GLG; and always make sure to put otherwise stuff in the correct Otherwise!! :-)

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

Sign In or Register to comment.