How to make a attribute connecting 10 actors?

GuaveMediaGuaveMedia Member, PRO Posts: 1,262
edited November -1 in Working with GS (Mac)
Hey,

I want some things to be collected in a given way. But how to use attribute, everytime when the player gets the right item, the "finish" attribute is set to 1, 2 ,3..... But what to do when he collects the item in a wrong way? How can this be set up?
If he fails I just want to reset the scene immediately. So somehow the reset attribute has to know the right way.

But how to do that?

thx

Comments

  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    thx tshirtbooth :)
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    But there is one problem,

    this does not work :
    when its collected
    rule if game.order is NOT = to self.number
    trigger failed rules

    because in each actor there is a change attribute rule standing alone that says
    change self number to 1 or two...
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    DAWNED....

    forget it, I am just a idiot haha

    how about your bf3 score? I am also playing ;)

    thx
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Just one thing that appeared now :/

    For failure I have an attribute, and when the wrong item is collected this attribute is set to 1, all are destroyed and a retry button is showed up. But the funny thing is (only this way) when I press the first correct one and then the item that normally has to be collected at last, the scene gets just reset and the retry button doesn't appear ^^

    It only happens when trying with the GSViewer...

    Thx
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Oh so many problems :///

    the next is that the count system does not work :// In my actors 1 and 2 I have these rules:

    Actor1: When touch is pressed and attribute game.order = 1 (because actor 1 has an index attribute set to 1).... change game.order to game.order+1, destroy the actor

    Actor2:When touch is pressed and attribute game.order = 2 (because actor 2 has an index attribute set to 2).... change game.order to game.order+1, destroy the actor

    But there is a fail rule ( I added a integer fail attribute) when touch is pressed and game.order equals NOT 2 change fail attribute to 1, destroy

    The game.order attribute is set to 1 at the beginning...

    Please help :)

    thx
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    concerning my last post, is there a mistake??

    thx tshirtbooth
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    .
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    @tshirtbooth:

    what is causing this??

    For failure rule I have an attribute, and when the wrong item is collected this attribute is set to 1, all are destroyed and a retry button is showed up. But the funny thing is (only this way) when I press the first correct one and then the item that normally has to be collected at last, the scene gets just reset and the retry button doesn't appear ^^

    It only happens when trying with the GSViewer...
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    do you have some time left this afternoon/evening? I could send it immediately to you!
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Maybe you can figure out what it is with this explanation.

    When I press the first correct item and then immediately a wrong one, scene just get's reseted. When I press the wrong one not immediately, the retry button shows up as it should.

    How would you set up the fail rule tshirtbooth, I think that's the only problem!

    thx for helping me
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    No idea?

    Can somebody help me?
Sign In or Register to comment.