Curious think, reset order.

I have and actor to change attrib reset scene.
Another to show "Lose"

All of two are on an same layer non scrollable.
If Lose are before actor reset all work fine,
But, if reset are before on the layer then Lose dont disappears when i press Reset"

The solution partially its to move reset button down x or y and stay before on layer. But is that a bug?
Should not be working independet of position under the same layer?
I`m the position on same layer can overlap graphics, but behaviors?!?!?!?!

Comments

  • mrpacogpmrpacogp Member Posts: 400
    This is the same problem for spawn actors.
    Its impossible to determinate where to be the spawned actor.
    Tested on all the way, front of layer, back of layer, sometimes its bugged and stop to work,
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    I don't really understand the problem but if you want to post screenshots of your rules or a link to your project file, I can figure out how to help you.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • mrpacogpmrpacogp Member Posts: 400
    https://www.dropbox.com/sh/7d1ueuf3lk8r1hn/-HJYrwxej1

    I have made this template.
    On it its work.
    But on my game, if a move the order from the layer scene, the "win" actor, dont return to their position.
    Apologize about my english.
    Do you understood ?
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    The file you sent me has all of the actors in one layer. The rules are simple: if you press one actor, the "YOU WIN" DisplayText actor moves to a one position in the scene. If you click on the other actor, the "YOU WIN" actor moves to a different position on the scene.

    I guess I'm still not understanding what your question is, I'm sorry. Can you post a link to a version of the file that does NOT work? It sounds like you're finding that actors' rules don't work the same on different layers, but I'll need to see the actors on multiple layers to understand better.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • mrpacogpmrpacogp Member Posts: 400
    Finally found the "bug"

    When the actor "reset" is pressed, change game.reset to true.
    If i set "otherwise" change game.reset to false all work fine.
    If i dont set otherwise value, then the rule only work depending of position on the layer.
    Test it.

    I think i don't understood very well when to use "otherwise"
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    The Otherwise section means when the rule condition is the opposite of what you specify. For example, if you have a rule that says When attribute game.ClickedPlay is true, then the Otherwise section will activate when attribute game.ClickedPlay becomes false. If you've done other programming, you would recognize this as:

    If game.ClickedPlay==true
    {behaviors}
    else
    {behaviors}

    The "else" is the Otherwise in GameSalad.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

Sign In or Register to comment.