Waypoint example I made for you
ORBZ
Member Posts: 1,304
Hey everyone, I made this as an example for how to do waypoints. I got a little carried away and instead of spending one 15 mins on it I spent an hour and a half. Enjoy
Hope you find it useful. Please put my name in the credits of your awesome game if you use it
http://gamesalad.com/game/play/77465
Hope you find it useful. Please put my name in the credits of your awesome game if you use it
http://gamesalad.com/game/play/77465
Comments
"Sent from my iPhone"
It's really important that pros like you or firemaple share some stuff, because it's really a big help for most of us.
I found a "bug" tho.....well, not really a bug I guess.
If you drag them in almost a line, 0-1-2-3 and let it run, when it gets to 3, it turns around, but if it hits "2" it obviously registers a "2" hit, and then moves back on to 3, and back to 2, and back to 3, and so on.
Seems like once it hit's 3, you need to make sure it forces itself back to 0 maybe.
Great demo tho.
That's not a bug, it's a feature. I left it like that on purpose. To force it to go to the next sequential node you would add a condition to the rule where it checks for collision in the waypoint.
The added condition would look like...
When overlaps w/ bot AND self.ID == game.targetID
I left it off because I found it to be more interesting when one could "short circuit" the path. It makes prettier sounds.