- Home /
Performing sequential actions like moving and dealing damage
Could anyone point me in the right direction on this? Basically: I have a turn based game, where boss and player take turns. Boss is supposed to have different "moves" like: go forward for N1 units dealing damage to everything he collides with, then turn 90 degrees, then go forward N2 units and expose left side, end turn, wait for layer, next turn locate player and move towards him, deal damage, jump back N3 units, end turn, etc..
Is there any way to do such a thing in Unity?
Answer by Jessespike · Jun 06, 2016 at 08:48 PM
One way to do this, is to create an "Action queue system". Basically you have a queue of actions, that waits until one action has finished until starting the next. You will have to code this.
Hmm, and how would I do that? I can't really think of any way to make script wait for it's turn.
Your answer
Follow this Question
Related Questions
How to move the object to where the object is already pointing to? 1 Answer
Movement Code not working 2 Answers
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers