Question by
Gaming Worlds · Jan 09, 2016 at 08:34 PM ·
movementcharactergameplaybasics
Make object go straight for the player?
So I have a circle and I want it to make a straight b line for the player wherever it spawns.
The problem is i don't know how to get it to directly go to the player no matter where in the world it spawns.
Comment
@OG23
I have one problem though. When I use the script i get the error
the variable targets of launchScript has not been assigned.
how can I assign it?
Sorry I'm new to program$$anonymous$$g.
The target in your case is your player gameobject. So, you can just drag your player into the target field of this script in the Unity inspector.
I strongly suggest you take a look at the Tutorials provided by Unity before asking questions here.
You can find them here.