How to make scene reset after actor changes size?
Noob here. I'm trying to get my scene to reset after my actor has "shrunk"
I have a "hole" placed in the scene, and when the actor collides with it, the actor initiates a rule "change size" and shrinks.
In that same rule, underneath the "change size" rule, I added a "reset scene" rule. However, the scene never resets itself after it shrinks.
How do I make the "reset scene" rule, dependent on the "change size" rule? I tried adding a timer after the "change size" rule, using the "after" setting on the timer, and then the "reset scene" rule follows that.... but still nothing.
I'm doing this as an easy way to make the actor seem like it's falling in the hole (it's a "top down" game).
Am I setting this up completely wrong? I guess I'm having trouble understanding how these rules trigger themselves, and their "order of operations."
Answers
If actor collides with [hole actor]
.....change size
If attribute self.Size.Width < 20
.....reset scene
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Works perfectly. Makes a lot more sense than how I was trying to do it.
Thank you!
You're welcome!
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User