Construct 3 r143

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

  • Order by
  • The only issue I see with the new function block, is that it now behaves more like a traditional function :)

    What I mean is that I have used the old function plugin sometimes as more of an event system. So I may have more than one function with the same name. I would then call a function/event and have different logic executed on different event sheets for the same function call.

    For example I may have a function called "Player Hit" and have it in 2 event sheets, one called play manager and the other called sound manager. In one event sheet it could reduce the players' life count and in the sound manager it would play an explosion.

    For me I found it more convenient to organize my event sheets like this to isolate logic like this, but have multiple things have happen on the same function/event.

    I originally wrote my own event plugin, which worked well, but then I found it basically duplicated what the current function plugin does, making use of triggers.

      • [-] [+]
      • 1
      • Ashley's avatar
      • Ashley
      • Construct Team Founder
      • 1 points
      • (0 children)

      I think in this case you ought to be using different function calls. Otherwise you can't know what a "call function" action does only by looking at it.