This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
0 votes

First of all sorry for my english. I'm going to explain myself better, I want that when I press a button, particles can show (just once, I already have that config). I already have my button and my particles2D, I need to know how to link them please. Thanks for read or help =D

Godot version v3.3.3.stable.official [b973f997f]
in Engine by (15 points)

1 Answer

+1 vote
Best answer

Directions

  1. Set Particles2D One Shot to true in Inspector tab
  2. Attach script to Particles2D
  3. Connect the Button pressed signal to that script (located in Node tab)
  4. Set Particles2D Emitting to true in script

Script

# Particles2D.gd
extends Particles2D

func _on_button_pressed():
    set_emitting(true)
by (6,942 points)
selected by
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.