Construct 3 r405

You're viewing a single comment in a conversation. View all the comments
  • 2 Comments

  • Order by
  • Signals will allow you to make your own event triggers. You can simply understand it as: let someone do something when they receive a message. It provides you with another way to organize your code. When receiving a signal, you don't need to pick them first. You just tell them to run action when they get a message.

    For example, when the enemy's health is less than or equal to 0, let the enemy send a "dead" signal.Then write in another place that when the enemy receives the "dead" signal, run the action, function or object action.

    Moreover, the signal is composed of strings, which is very flexible. You can do more with it