playMaker

Author Topic: [SOLVED] Particle doubt  (Read 3051 times)

VascBogdan

  • Full Member
  • ***
  • Posts: 118
[SOLVED] Particle doubt
« on: February 14, 2015, 01:10:07 PM »
Hello. I have an explosion particle, but I didn't find any action related to particles. My ideea was to put the explosion particle on the target root, disable it, and enable it/starts it by an action, when a state ends. In another way to say, I want my target to explode when it dies.
I would really like to use particles instead of animation, because I have like a lot of particles in my project and they are pretty nice. Is there anything I have to import ?
« Last Edit: February 16, 2015, 02:40:08 PM by Lane »

VascBogdan

  • Full Member
  • ***
  • Posts: 118
Re: Particle doubt
« Reply #1 on: February 15, 2015, 07:42:13 AM »
Bump

600

  • Beta Group
  • Hero Member
  • *
  • Posts: 713
    • Flashing Lights
Re: Particle doubt
« Reply #2 on: February 15, 2015, 08:08:04 AM »
Hello, check Ecosystem for Particle there are Play/Pause/Stop actions or you can use Set Property action to control them.

VascBogdan

  • Full Member
  • ***
  • Posts: 118
Re: Particle doubt
« Reply #3 on: February 15, 2015, 09:26:28 AM »
I didn't really understand the thing with Set Property, I will still wait for someone else. Maybe I'm not that right, should I transform somehow the particle into an animation ? If yes, how ?

VascBogdan

  • Full Member
  • ***
  • Posts: 118
Re: Particle doubt
« Reply #4 on: February 16, 2015, 07:03:51 AM »
So, does someone know how to create an explosion by a particle in  PlayMaker ?

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Particle doubt
« Reply #5 on: February 16, 2015, 07:33:55 AM »
You could just turn on/off the GameObject instead.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

VascBogdan

  • Full Member
  • ***
  • Posts: 118
Re: Particle doubt
« Reply #6 on: February 16, 2015, 07:41:13 AM »
I forgot to say. I tried this but when I drag & drop my particle prefab on the GameObject empty space, it doesn't work. It tell me to either Sent Message, either to Set Property or something like that. It works only if I put the particle prefab from a folder, but I need to put the one from the Enemy prefab (so it will explode where the enemy is).

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Particle doubt
« Reply #7 on: February 16, 2015, 07:45:32 AM »
Use the Activate Game Object action.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

VascBogdan

  • Full Member
  • ***
  • Posts: 118
Re: Particle doubt
« Reply #8 on: February 16, 2015, 08:06:57 AM »
This is what I used.

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Particle doubt
« Reply #9 on: February 16, 2015, 08:14:07 AM »
Are you targetting a prefab from the scene or something?
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

VascBogdan

  • Full Member
  • ***
  • Posts: 118
Re: Particle doubt
« Reply #10 on: February 16, 2015, 09:09:14 AM »
Well, I think I solved the problem that didn't let me to put the prefab there. But now, the explosion doesn't work. Is this maybe because when the enemy dies, it will be destroyed(deleted) and the particle is a child of the enemy ? If yes, what now ?

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Particle doubt
« Reply #11 on: February 16, 2015, 09:16:03 AM »
Before you destroy the character you could either use the Set Parent action to reparent the particle system to nothing or detach children in the Destroy action. You'll still have to destroy the particle system after that.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

VascBogdan

  • Full Member
  • ***
  • Posts: 118
Re: Particle doubt
« Reply #12 on: February 16, 2015, 02:31:30 PM »
Thank you again. I finally made it to work with Set Parent. To the explosion prefab I added an FSM to auto-delete the explosion game object from the scene after 3.5 seconds after the target died. Thank you again.