I’m trying to get it to where when i fire the bullet it tracks to a newly spawned “Aim” but the aim seems to fail to be created and the bullet tracks to the aim on a different layer
Any insight on to why this is happening would be most helpful
Here is the blend of the Test file
EDIT: Problem solved New question about 4 posts down
My guess is that you’re tracking to the hidden layer object that you’re spawning - you need to use Python to find the last added object (the spawned object) and track to that instead.
If you add object (Suzane) to a scaled object (cylinder), the added object (Suzane) would be scaled down with the factor of the scaled object (cylinder). So the object is been added but it is inside the cylinder. You must apply the scaling to the cylinder CTRL+A (Scale and Rotate to ObData).
For the second problen I don’t have a solution (in Logic Briks). The trac to actuator always trac to the original object ant not to the added object.
Here’s a blend (track_to.blend) which shows how to find the closest enemy and track to it.
Just attach the script to the object which will be tracking the target and give the enemy a property “enemy”.
Some notes:
The find closest target script is quite a drain on resources.
You can try having two triggers, a slow update for the closest enemy finder and a fast update for the track to function. This will give very good performance.
You can also adjust the speed of the tracking. In the (track_to-advanced.blend) you can change the tracking speed with the property attached to the player.
Use the (track_to.blend) if you want simplicity.
Use the (track_to-advanced.blend) if you want better performance and control.
Well instead of having aim be spawned in, I’m having it to where you have control of the boomerang over the course of it’s flight (which will add a few puzzles for me to try to add in as well :3) and it’s working great except two things
I can have it static (but it won’t collide with walls and return)
Or i can have it as a sensor (but objects won’t parent to it and i can’t use it for picking up items)
Any suggestions?
(also I’d like to say how satisfied I am with these forums, I almost always get quick and detailed answer that always either help me solve the problem or find a work around way ^^)