playMaker

Author Topic: spawn object from current location of another object then translate.  (Read 1897 times)

Spiffy664

  • Playmaker Newbie
  • *
  • Posts: 5
Hello again,

I am having difficulty trying to figure out how to make a Sprite spawn, and then move forward - away from, another sprite (a projectile, essentially)

Currently the sprite follows around my finger. I would like this sprite to continuously spam projectiles for now.

Thanks for any ideas!

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: spawn object from current location of another object then translate.
« Reply #1 on: November 14, 2012, 01:16:05 AM »
Hi,

 If your projectile if following your finger when you spawn it, Is it because it is a child of the gameObject you touch and drag? or is it because you have  a script that also follow touches?

 Basically, when you spawn a projectile, you should have it using "translate" for your purpose, where "Space" is set to "Self" and translate it using x or z axis depending on the the shape of the projectile really.

Have you tried that already?

bye,

 Jean