Homing missiles

For questions about using Classic.

Post » Tue Dec 13, 2011 6:27 pm

Hi, could you please tell me how to create homing missiles in platformer? I tried RTS behavior, but they keep acting strange: for one thing, their trace isnt even close to the real-life missile trace (more on the straight line side) and sometimes when fired from a position too close to the enemy, they slow down and start hovering around the target instead of hitting it.

Apparently, I have to program custom movement and arrays for displaying a large number of missiles simultaneously. However, Im no programmer, and would be extremely grateful if you guys could help me out. A piece of code or a sample CAP file would do just great.

Thanks.
B
3
G
1
Posts: 12
Reputation: 499

Post » Wed Dec 14, 2011 6:26 am

Just give them a simple ball behavior and make them always turn towards their target.

... Unless you're trying to make them actually find a path around several obstacles?
B
41
S
18
G
16
Posts: 277
Reputation: 11,179

Post » Wed Dec 14, 2011 6:39 pm

I've made this example
It's little commented, you'll have to add collisions, player movement etc., but basics are there.
ImageImage
B
25
S
6
G
8
Posts: 774
Reputation: 6,645

Post » Thu Dec 15, 2011 3:05 pm

Thank you very much. Example was very helpful.
B
3
G
1
Posts: 12
Reputation: 499


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 4 guests