Change Scene custom

Hi there, good morning.
Is any way to change to one scene based on attrib?
We can change to scene number X or next scene
But, change to scene self.lv?

Comments

  • adambowker98adambowker98 Member Posts: 57
    You could make a game attribute called Scene

    Add an invisible actor on every scene that this will be applied to

    Apply a rule to that actor that says if game.Scene is X, change scene to next scene.

    Adam
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598

    Hi @mrpacogp

    So to clarify what @adambowker98 said, you can't change a scene directly with an attribute, but can indirectly, i.e When self.lv =1, change scene S1; When self.lv =2, change scene S2, etc.

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

  • mrpacogpmrpacogp Member Posts: 400
    Hmmm, to hard and increases size really?
    I want to do it for my level escene, i have custom each actor for select level, and locking for another way to do it with the prototype.
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    edited February 2013
    Hmmm, to hard and increases size really?
    Even if you've a hundred levels, a hundred extra rules are going to be insignificant to your file size....

    So all possible values of an integer depending which level to go to, is the only way really, in your prototype; you could make this attribute a self attribute I guess, (like you have already), adding one to its value every time the prototype is spawned. Then the list of Change Scene behaviours in the prototype.

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

Sign In or Register to comment.