Construct 3 r336

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

  • Order by
  • But what's the difference between a function and a custom action?

    • When you call a function, you will have to pass a parameter to filter between all the sprites and choose the clicked one. Like for example passing the UID to select inside the function the clicked sprite. If you don't pass the parameter, the action is applied to all the instances of that sprite. Using the custom action, seems to avoid that hassle, that's quite a nice touch in the code.

    • I think it's an easier way to target specific objects to run actions on them

      • Personally I can't see any difference. Maybe the upcoming video specifically on custom actions might clarify things. Cheers

        • It would've been a big deal, but "copy picked" was added some time ago, so it's kinda does the same thing I guess. Still, custom actions is a much better way to do it in terms of organization, since you directly connect a function to an object type, instead of having a list of all functions in the project to choose from.