I took Dale's advice, and looked into Digital Tutors. He was kind of enough to share, and I got access to some great tutorials. I finally solved the waypoint problem, through some very simple code. I used gizmos to create a waypoint system similar to the way the RAIN INDIE sets up navigation paths.
|
Sample code. |
This would be as easy for a non-programmer to use as dragging and dropping the scripts onto the player and enemy. The enemy movement script is where the waypoint system comes to life:
Here is what it looks like in an actual scene:
|
The ships follow the loop loosely, with added deviations. |
No comments:
Post a Comment