Rule issue when I replay a scene
mars-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 !
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"
- I use the GS Viewer and choose a scene in the Level_Choice scene
- 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)
- I go back to the Level_Choice scene and choose the same scene
- 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 ..!
If anyone has an idea that may help me, your suggestions will be most welcome.
Any idea ?
Comments
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
Thanks for your feedback, here is a screenshot :
My iOS games here and Android games here
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
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 )
Thanks @tatiang for your help !!
My iOS games here and Android games here
You're welcome! Glad you figured it out.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User