What's the easiest way to give enemies a predetermined route?
example => A to B to C to D to A...(repeat)
Preferable without acceleration/deceleration involved so they keep a constant speed pattern.
There are a lot of ways to do that. I've seen the timeline used to make the paths, or the pathfinder behavior to move through waypoints. Here's a way that just moves the objects toward node sprites. Once it hits a node it moves to the next one and so on. I use the group instance variable to have multiple paths.
uc87c26189f44fa7fde41a5e40eb.dl.dropboxusercontent.com/cd/0/get/CiDO_QuJjyfvWw1N7n_EA0ryMokH8UXQxAtnGesJoJp5mLtG5Lnio9OGSqCB2nO12Q-Fy01DZibrJpoT1VVLnRs4noX-OUP15FwqUD4w7UN8iOVdyQ9Sl6c_D-w7K3piJh5mWh04CsKsrX-KuG54GrlA/file
Develop games in your browser. Powerful, performant & highly capable.
The easiest method is to use MoveTo behavior, it supports waypoints.
Sprite Move to A (add waypoint)
Sprite Move to B (add waypoint)
Sprite Move to C (add waypoint)
...
Sprite On Arrived - repeat from the beginning
The easiest method is to use MoveTo behavior, it supports waypoints. Sprite Move to A (add waypoint) Sprite Move to B (add waypoint) Sprite Move to C (add waypoint) ... Sprite On Arrived - repeat from the beginning
Yea this was what I was looking for. :) worked great! Thanks to all replays!