playMaker

Author Topic: (Shruriken) Emit Burst  (Read 1069 times)

Red

  • Hero Member
  • *****
  • Posts: 563
    • View Profile
(Shruriken) Emit Burst
« on: June 03, 2015, 11:12:31 AM »
This is an action that just goes into a shuriken particle system and emits a burst of particles that the user defines. It's very simple (and adapted from both the Unity manual and referencing the other Shuriken actions that are in existence.)

How to use this action.

  • Input the gameObject that has the particle system on it.
  • Tell it how many particles to emit.

That's it.

When using this, I've used it for a bullet trail and muzzle-flash system... On those, in order to ensure that the particle system is cleanly used, I set the emitter in the Particle window/tab to "none" (this doesn't seem to negatively affect the performance of this action) It doesn't seem to mind if the particle system is looping or not either. So, it's here if you needed something like this.

If you think there could be more shuriken actions made, I can see what I can do about that. I only put this one together because I was getting a little tired of the "Set Property" action having to reset the particle timer, turning it on/off, etc. in order to get a particle to be released (as is the case with the bullet trails.)

If you have any suggestions, critiques, advise, by all means let me know. Anything I can do to help improve my coding knowledge is more than welcome.

mdotstrange

  • Hero Member
  • *****
  • Posts: 549
    • View Profile
    • Can't code? Who cares! Make games anyway!
Re: (Shruriken) Emit Burst
« Reply #1 on: June 03, 2015, 04:03:43 PM »
Thank you for making this action and sharing- it sounds very useful  :)
Indie game dev and instructor at the Strange School. Learn Playmaker at the Strange School!

dudebxl

  • Hero Member
  • *****
  • Posts: 602
    • View Profile
Re: (Shruriken) Emit Burst
« Reply #2 on: June 05, 2015, 06:42:41 AM »
coooool :)

Groo Gadgets

  • Junior Playmaker
  • **
  • Posts: 95
    • View Profile
Re: (Shruriken) Emit Burst
« Reply #3 on: August 05, 2015, 08:14:17 PM »
This is REALLY useful! Thank you so much!