[Request] homing rocket behavior

Post your work in progress addons and get feedback

Post » Tue Apr 14, 2015 1:19 pm

Hello;

Bullet is a great behavior, but we also could use a homing rocket behavior with these properties:

A target UID it homes on.
A max turning rate (like 5 degrees per second)
an initial launch speed and direction
an acceleration
a Max Speed
a fuel or range limit
a flag for "explode" when out of fuel or target lost
A flag for "explode" when within a certain distance of target
an on colision notification

It looks to me like altering the Turret behavior (because this behavior aquires targets) and blending
it with the pin behavior (since this behavior tracks a target) might be the way to go.

Thanks for your time.
yours
Winkr7
B
26
S
7
G
3
Posts: 152
Reputation: 2,971

Post » Wed Apr 15, 2015 7:30 am

I had made a behavior which could predict the interception point of a target object. Here is a demo (sample capx).

I prefer not to bind moving behavior which changing the position or angle of object, with strategy behavior which provide the reference information.

For example, this behavior would provide a prediction position, and the moving behavior might use car behavior, custom moving, bullet+ set angle etc.
B
107
S
25
G
224
Posts: 4,322
Reputation: 127,821

Post » Wed Apr 15, 2015 1:05 pm

Thanks for the demo link rexrainbow. I had thought of using car behavior for the movement--but I wasn't sure how to separate the behavior from the input keys. I will play around with it and your prediction behavior.

The turret behavior + pin combines movement behavior and strategy behavior and it is pretty popular combination so I still think a homing missile (or homing fire spell etc) type behavior would be useful to a lot of people. Still, it is a combination of two behaviors.

Thanks for your time.
yours
Winkr7
B
26
S
7
G
3
Posts: 152
Reputation: 2,971

Post » Thu Jul 02, 2015 5:21 pm

@winkr7

I made this, maybe you can use parts of it :D I have put in as many comments as i could, to make it understandable. But should be somewhat simple.

Fuel Gauge
Spends X amount of fuel each second.
Image

Target Switching
When the rocket cannot see you, it expands it vision field and finds a secondary target, nearest itself.
Image

CapX
Homing Rocket
B
15
S
7
G
1
Posts: 147
Reputation: 2,400

Post » Sun Jul 05, 2015 5:53 pm

This plugin by rex might make a good homing missile:

behavior-rex-ljpotential-attracting-or-rejecting-objects_t112786
Don't lose your work. Backup your game with Dropbox.
B
43
S
10
G
10
Posts: 1,106
Reputation: 9,157

Post » Sat Jul 16, 2016 3:20 pm

@Winkr7 Hi.
Do you find or create missile homing behavior or system?
B
9
S
3
Posts: 174
Reputation: 1,175

Post » Tue Jul 19, 2016 3:33 pm

@monstafanastary
No, I never got a missile homing addin.
B
26
S
7
G
3
Posts: 152
Reputation: 2,971

Post » Tue Jul 19, 2016 4:09 pm

You can do all of that with bullet, and line of sight.
Image ImageImage
B
164
S
49
G
138
Posts: 7,953
Reputation: 91,872

Post » Tue Jul 19, 2016 6:12 pm

@newt

is thins way better or turret ?
B
9
S
3
Posts: 174
Reputation: 1,175

Post » Tue Jul 19, 2016 6:27 pm

Honestly I would go with Line of Sight.
Turret is made to be the shooter, not the .. shot.
Image ImageImage
B
164
S
49
G
138
Posts: 7,953
Reputation: 91,872

Next

Return to Work in Progress Addons

Who is online

Users browsing this forum: No registered users and 0 guests