Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Hey! While making my game, I ran into the problem that I can't implement one of my ideas, namely a homing bullet (there is a bullet and in theory it should be aimed at a magnet object). The method that I came up with does not work, and the game will not be so interesting without it. I will be very happy if someone help me <:0 |
||||
|
I made a homing missile for my game (with no coding). It was pretty easy to do; here's the basics of how I got it working..... I added a game character behaviour to the missile and the enemies. When the missile is fired, I used: every few seconds (50ms), move towards node action (to move the missile to the targeted enemy), I also added a turn towards event (to make the missile always point at the target). I attached an on proximity event to the missile (to make it explode when the missile is close to the enemy). I added a particle effect to make a rocket-trail. Don't use the Shoot action to fire your bullet - because it will override anything movemtns you try to make with the homing bullet and will force it to fly in a straight line instead. |
||||
|
@veganpete Thank you so much! Will use it |
|