playMaker

Author Topic: making a homing missile  (Read 2818 times)

dbsrb43

  • Guest
making a homing missile
« on: January 11, 2013, 10:39:55 PM »
armorgames.com/play/2963/dodge
anyone can make a homing missile fire so that i can adjust the rate, power, and speed??
script for it?? or make it in playmaker?
NOOB sorry ..

Alio

  • Playmaker Newbie
  • *
  • Posts: 19
Re: making a homing missile
« Reply #1 on: January 14, 2013, 04:15:30 PM »
you can use playmaker to get/create that game object once the item should be fired.
then you need to apply

-Direction by using actions, smooth look at and move towards.  THis will make it so that the missile will always look at the target so it seems like its a homing missile and it will move towards the target.  You should probably check box for every frame so that its consitantly updating rotation and position. 

-If you want to missile to destroy itself after x amount of time apply wait x sec and then transition to hit/no hit if no hit destroy after x time if hit apply dog

-Damage you apply int in negative value ie if you want it to hit at 20 hp do int add -20 int value apply to Gameobject health manager or whatever you call it.  You can change this value for more or less.

-for speed i'm not looking at playmaker atm but im pretty sure you can adjust movement speed for the move towards as well as the look at so if you want a slower turning missile just lower and vice versa.

add particle effects and bam she-dam you got yourself a missile.  Make sure that you apply the destroy gameobject after your impact/calculations as setting destroy gameobject as first action in a state will negate the remaining actions after it.

Hope that helps you.
I just frankenstein it.