This is mostly self-explanatory.
I started with this (thanks Yann!) http://dl.dropbox.com/u/23551572/C2/gridMovement.capx
I tried to rework the code to handle multiple actors moving on a grid.
https://dl.dropboxusercontent.com/u/25752478/c2examples/multiplegridmovers.capx
How it should behave: Each actor that isn't going to walk into a wall should move. If some actors can move and some can't, than those that can move should and those that can't shouldn't. Straight forward. But it doesn't work that way.
I'm guessing the problem has something to do with choosing instances of an actor, as only the first actor instance gets checked for passability. Help?
[quote:2xvt35nr]I'm guessing the problem has something to do with choosing instances of an actor, as only the first actor instance gets checked for passability. Help?
Your picking is fine for this, you just need to add a "for each".
Develop games in your browser. Powerful, performant & highly capable.
Awesome, thanks.