Spawning and despawning actors relative to another actors position.

I have a spaceship actor that I want to have an engine flame animation when a certan button is pressed. I would just make an animation, but I have another animation that might interfere with it. How do I get the flame to follow behind the ship and disappear when I am no longer moving forward?

Answers

  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    edited April 2013
    You could use the Particle Behavior instead. Deep Blue Apps has a very nice (FREE!) demo file over on their website. I'll post it below for you.

    http://www.deepblueapps.com/gs-particle-set-1/
  • Thanks, but I was really hoping to use an engine firing actor that I had made since it's a kind of 16 bit style game.
  • CluvCluv Member Posts: 229
    You can constrain the flame actor to the position of the ship, minus the x-value to get the flame to begin at the back of the ship. To do this you will need to hold the ship's position in a pair of variables (using constrain) and then the flames position would be constrained to those global variables, as a mean of passing the information from one place to another. You can also use a table to hold the x,y position of your ship if you didn't want to use global variables. Either way, you will have to use two constrains so that the ship and the flames stay "together"
Sign In or Register to comment.