Creating a collide action which freezes all other actors on scene for 10 seconds.
BryceVance
Member Posts: 13
I am relatively new at this and am working on a platform style game in which I have a "Special item" which the main character can collect for a "boost" so to speak, Does anyone know how to make a collision rule that would make it so when the main character collides with this actor the enemy freezes movement for 10 seconds. Please do help as much as possible. Much appreciated.
Comments
In your main character actor, add a rule that says:
When actor collides with [special item actor]
Change attribute game.SpecialEnabled to true
Timer after 10 seconds [run to completion MUST be checked]
Change attribute game.SpecialEnabled to false
In your enemy actor, add a rule that says:
When attribute game.SpecialEnabled is true
[no behaviors or a behavior to stop movement, such as Change Velocity with speed set to 0]
Otherwise [put this next part in the Otherwise section for the rule]
[your existing movement rules]
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User