Rule issue when I replay a scene

mars-sevenmars-seven ParisMember, PRO Posts: 49

Hi guys,

I hope you could help me.
I'm facing an issue and after 3 days of trying to resolve it, I think the best thing is ask some help ! :smile:

I have :

  • A scene "Level_Choice" when the player can choose between the levels
  • Several level scenes with an actor "rules" which initialize two attributes : the player life (ex : 3) & the ennemy health (ex : 100)

This actor has also two more rules :

  • If the player life <= 0 , then the rule actor change scene for a scene "loose"
  • If the ennemy health <= 0 , then the rule actor change scene for a scene "win"
  1. I use the GS Viewer and choose a scene in the Level_Choice scene
  2. I play and win (or loose) > everything works well (I'm on the success scene if the ennemy health <= 0 and on the loose scene if the player life <= 0)
  3. I go back to the Level_Choice scene and choose the same scene
  4. The two attributes are well updated (3 and 50) but the rules doesn't work anymore and the scene doesn't change if the player life <= 0 or if the ennemy health <= 0...

And I don't understand why ..! :neutral:

If anyone has an idea that may help me, your suggestions will be most welcome. :wink:
Any idea ?

My iOS games here and Android games here

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    Can you post a screenshot of your rules? Are those rules inside of another rule? My guess is that you have another rule condition that you haven't mentioned and that condition isn't being triggered.

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

  • mars-sevenmars-seven ParisMember, PRO Posts: 49

    Thanks for your feedback, here is a screenshot :

    My iOS games here and Android games here

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    That looks pretty straightforward. I'm not sure what's causing the problem. If you want, you can post your project file (.zip it first) and I'll take a look.

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

  • mars-sevenmars-seven ParisMember, PRO Posts: 49

    Hi,

    Finally, I deleted the actor and re-do everything and it's ok now (I don't really know what changed but... it works now :smile: )

    Thanks @tatiang for your help !!

    My iOS games here and Android games here

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    You're welcome! Glad you figured it out.

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

Sign In or Register to comment.