So I'm trying to make a game similar to Flight Control where a user draws a line to guide an Actor along a path.
Here's the scenario : Ship Control
Right now I'm using a different line object actor that creates a new instace on mouse click (left for a blue line, red for a red line, the appropriately colored ship will rotate and move towards the closest guide object). When you drag your mouse, it creates a line of objects and if the first node is within range of the right boat, it will start moving along the line, constantly removing a line object and orienting on the next.
I have a few things that are bothering me and I can't quite figure out though;
- How to make the line of objects solid when I move the mouse too quickly. Maybe I should be using a different method than a seperate actor that guides the boats, but this was the only option that came to mind. Any suggestions on making the objects spawn more rapidly or how to connect them so they form a solid line would be awesome.
- How to align the ship so that it doesn't stay slightly diagonal when following a straight horizontal line after taking a turn up/downwards. The movement isn't really natural at the moment, since ships generally don't drift Need for Speed-style through ports.
Any other general suggestions that would improve this project would be nice.
Keep in mind that I'm a beginning programmer and this is all self-taught. Don't be too harsh ^^.