[solved] trigger subconditions in a function with parameter?

0 favourites
  • 3 posts
From the Asset Store
Game Triggers is as versatile as a Swiss army knife, and will be a great resource for any type of game you're creating.
  • Hi folks,

    whilst playing around on a new project i stummbled upon a problem i'm not quite sure how to fix.

    As you can see I call a function with a parameter. The first command ("set animation [...]") in the function works fine, which means the parameter is correctly set to a string called "down" or "up" or whatever since my animations are named in that way.

    However the subevent conditions are not triggered even if the parameter has to be "down" (triggered on touch). Can anyone explain this to me plausible?

    Thanks in advance!

    ~Gougth

    [attachment=0:18j4qpjd][/attachment:18j4qpjd]

  • You have to compare the parameter 0, not the parameter Function.Param(0)

    Function.Param(0) is the value of the 0th parameter

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks for the fast answer!

    Where is the difference? And how do I compare the other one since i can't find any condition/index command to check it.

    edit: I got it, thanks. I have to check function.param(1) since it's the 1# parameter not the 0th as u mentioned.

    Many Thanks

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