I need a homing missile for my game

Did you look at these examples? Flowlab Game Creator - Flowlab Game Examples

2 Likes

yeah i looked at that homing missisle example

1 Like

That one works though, right? I don’t understand the issue I guess.

2 Likes

no whenever i shoot the first on works but the second one dosnt

to say something i should have already i need my player to shoot it and it is a side scrolling game

1 Like

oh and also when you shoot to the left it doesn’t work right

1 Like

put code in homing missile that extracts the pos of the target through proximity → closest and then make it point at that. then 1 → velocity forwards.

2 Likes

can you send an example picture?

ill link my game again

1 Like

always → (check) proximity [closest] (x,y) → pointat (x,y)

always → number [1] → (forwards) velocity

each is separate code

1 Like

What @Galactian said.
This’ll work for now, but this is definitely a bug that @grazer should fix :confused:

1 Like

you got your player x and y mixed up

1 Like

Oh. My bad, chief :joy:

Wouldn’t that make it go after the player

I need the player to fire the rocket

No, because your spider is the one setting the PlayerX and PlayerY, which kinda sounds like a you problem :upside_down_face:

Which object are you coding on?

The plasma bullet thing

it still goes up when you shoot it

its following the same pattern maybe i need to delete some code?

1 Like

nevermind i got rid of the old code and it works now

thanks! :slight_smile:

1 Like

(Waiting patiently for the solution marker)

I had instructions made if you click the link below the homing missile example
Homing Missile Example.

But also I’m going to looking into simplifying this example soon.
A new version of the bundle I have in mind would input X, Y, and turn rate.

1 Like

Actually scratch that, I just remade my homing missile example so it’s a lot easier to use.
Everything can now be controlled by the bundle inputs now.

Flowlab Game Creator - Homing Missile 2.0

image

1 Like