Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 16874

basic state machine

$
0
0

I`m trying to figure out how cycling through unit states is supposed to take place. Should the algorithm be contained in a for loop? Bellow I`m trying to get a unit head towards a new destination once it has reached its first destination. When the unit reaches its destination it stops and goes idle, this is the bit I have working. When I have several units in the scene I can`t get the same unit do a (complex) sequence of things however. i.e. they all stop at reaching the end of path and go idle but …


Viewing all articles
Browse latest Browse all 16874

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>