I can't call a function..?

Not favoritedFavorited Favorited 0 favourites
  • 4 posts
From the Asset Store
Basic clone of a 80's arcade game called Gyruss that was quite fun to play!
  • Hi, I've been searching for a while on how to resolve this issue, but I haven't found anyone with the same problem.

    I've created a function, but when I go into events to add conditions, there is no section for me to call the functions. It's just missing. I've connected all event sheets, restarted my computer, opened and closed, etc. I even created a new project to see what went wrong by creating a function and then trying to call it, but the function's action is just there on some projects and disappears on others, even If I've done the exact same thing on both.

    I genuinely have no idea what happened, or why it's happening, so If I can get any help, that'd be great...

  • If your function is set to return a value, you can't call it directly, only from an expression: Functions.FunctionName(parameters)

    If it doesn't return a value, you should be able to call it with an action: add a new action -> Functions -> FunctionName

  • Hi, could you give us examples of those projects where the function disappears?

    I don't see a problem with calling synchronous or asynchronous mode in functions.

    If you can't make an empty project with the problem, please add screenshots of the problematic areas.

    There is very little information to help right now.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Thanks, but I fixed it!

    I don't know what it was but after I restarted my compute again and went back into the projects it wasn't working in, it seemed to fix itself.

    Don't know what the issue was, but it seemed to resolve itself- must've been a glitch on my end.

Jump to:
Active Users
There are 0 visitors browsing this topic (0 users and 0 guests)