Coin-coin le Canapin's Recent Forum Activity

  • If it works like this I guess my problem is not what I thought, which means I'm still stuck on this nasty issue. >: ( I have no other system wait of any kind in my events so I really don't understand why my events work the right way only if I use a system wait.

  • Or maybe a foreach? I have an issue on my project ; a function or a condition is called after a function but this one takes some time to complete, so the next function called fails unless I put a system wait into it (even a wait of 0.0001 second works, but it will fail if I wait 0 second).

    I'm pretty sure the problem comes from this, so I'm wondering how I can know when a function or any condition/event has ended. Any idea?

    I know I already opened a thread about my issue but my current question is more specific, so that's why I'm creating a new one.

  • Hi,

    I've figured out where is the problem after I made a light version of my project (see attached file) : There is a problem in my events order.

    The order should be :

    event 4 (function setRestrictions)

    event 9 (only when event 4 is finished)

    event 10 (only when event 9 is finished)

    Question is : how do I know when a function has ended?

    Should I use a return value? How can I compare this return value to execute another function?

    Or if you have another idea...

  • Hi again.

    zenox98 > This is not the same issue. I'm not using any function parameter after my system wait. The thing is my issue occurs when I'm wait 0 second (or don't wait at all) but not when I'm waiting. I've tried to wait 0.000001 seconds. It seems to work because the change is too fast for the computer to show it, but it still doesn't work if I wait 0 second.

    I'm still stuck on this.

    Magistross > I'm aware of that.

  • I'll read that , thanks!

  • Hi.

    This issue is not a big deal, but I'd really like to know where does it come from to prevent further errors.

    Here is the function :

    I remove the system wait (if the value is equal to 0) a part of the code doesn't seems to work (blue frame), and only if the global variable epoch initial value is set to 0 (then it is set to 1 at the beginning of the function).

    The red framed blocks on the screenshot below are hidden only if I put a value > 0 in my "system wait".

    Any idea? :/

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thank you !

  • Hi.

    In my project, I set a custom opacity on two wall objects : 50 and 70.

    "If object is opacity 50" works, but not "if object is opacity 70".

    This is weird. However If I do :

    "f object is opacity <71 and if object is opacity > 69"

    It works.

    I'm kind of puzzled. Any idea why it doesn't work with a single "equal" ?

  • It would be nice if Construct 2 made this possible, as you can do with a regular programming language.

    I like the idea of having an identical family, but I don't think it will work as long I manipulate a family variable in my foreach loop, right?

  • No idea?

  • Hi.

    I would like to do something like this :

    For each object of my family "monster", I search the closest object from the same family "monster" and I pin them to each other.

    Any way to do this?

  • I am using this one. Thank you, I didn't know there was such a bug.

Coin-coin le Canapin's avatar

Coin-coin le Canapin

Member since 22 Dec, 2010

Twitter
Coin-coin le Canapin has 1 followers

Trophy Case

  • 14-Year Club
  • Email Verified

Progress

15/44
How to earn trophies