Enemy Wave with (smooth) Waypoint System - with as3 source

Subscribe to Enemy Wave with (smooth) Waypoint System - with as3 source 7 posts

Sign in to reply


 
avatar for Lofi Lofi 46 posts
Flag Post

after nobody came up with a solution, i searched the web for info on how to create my own wave of enemies which moves along a waypoint system, while the movement at the waypoints is rather smooth. several blogs helped in creating this code. it’s still not complete, but already working. if you need this as well, here’s the initial version:

http://rapidshare.com/files/181988137/waypoints.zip

there’s stuff that still needs enhancements. if you work on this, please do share :)

usage: click in the window to add waypoints; waypoints are draggable; press the “Wave” button to let a wave of enemy ships fly around the waypoints

 
avatar for Lofi Lofi 46 posts
Flag Post

here you can directly see what the swf does:

http://lofi007.piranho.de/waypoints/waypoints.swf

 
avatar for Draco18s Draco18s 5885 posts
Flag Post

Only issue is if you make a series of waypoints that are very close together, and have a sharp turn radius the “ship” can’t make the turn and ends up looping forever (at it never reaches the next point due to overshooting it). It needs to move away from the point in a strait line so it can turn and come back instead of orbiting.

This link down around figure 8 or 9. The entire article is a good read though.

 
avatar for Lofi Lofi 46 posts
Flag Post

yeah, that’s where the estimated value and the distance calculation come into the game. i don’t have the time to figure out how that works, but thanks anways for the link! for my needs the above is sufficient. and as it’s been asked for, i thought i’d create a sample and share. still, if anyone corrects/enhances the algorithm, please share :-)

 
avatar for Vader_Games Vader_Games 1 post
Flag Post

How would I get the ship to be removed when it reaches the last waypoint?

 
avatar for magTorres magTorres 25 posts
Flag Post

skills :)

 
avatar for 1234567890pi 1234567890pi 212 posts
Flag Post

yeah skills

Sign in to reply