Hi guys, in oldschool space shooters the enmies had a fixed path...for example they scroll down verticaly, than the go left...again vertically...than horizontally ecc.... how can I do something like that ?
thanks
Develop games in your browser. Powerful, performant & highly capable.
I would use a state maschine.
eg. (pseudocode)
while y < 100 { state 1: move n px right state 2: move n px down state 3: move n px left state 4: move n px down state 5: state = 1 } [/code:3r7on28k]
is there a capx file to understand that... ? i am a bit new in the field...anyway thank U
here's a simple demo of a state maschine:
thanks...very kind and helpful