Nicolas Wak's Forum Posts

  • Bypass button info with bool values…

    If 1 is pressed set button_1 true

    If 2 is pressed set button_2 true

    If 3 is pressed set button_3 true

    if 1 is released set button_1 false

    if 2 is released set button_2 false

    if 3 is released set button_3 false

    if button_1 & button_2 & button_3 then do your stuff

    And… it's done.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hello,

    I think it is browser related, but I'm wondering if there is a way to detect if a Keyboard is present/attached to the game (or like the Gamepad Object, if there is a Count event, or similar thing…).

    It's not mandatory, it's a polish thing. In my game, when the player press a key or a button, I spawn a notification to warn what is the "main" (last) used controller…

    Thanks you!

    Tagged:

  • Hello,

    You can find many tutorials on pinterest. So you could try

    patreon.com/posts/fire-animation-18225585 for fire

    patreon.com/posts/ice-and-snow-17113157 for ice

    Good luck!

  • Learn something today, doesn't know that. Thank you Ashley!

  • Hello,

    Used a json file as default, and I think it's the culprit… Anyway, used same file for boolean, and it's a nightmare to retrieve value into a boolean var ^^

    So finally found a workaround, 0 or 1 as bool, -1 as infinity (don't need neg lives or credits), and some checks when retrieving prefs…

    If there is a better way to do, I'm in!

    Thanks for your reply!

  • Hi Team,

    I found very convenient for lives or credits to use infinity value, because when you substract 1 to infinity, you have infinity, without more tests.

    But can you save this value in a dictionary? I've tried infinity, Infinity, "infinity", but when you retrieve the value with Get(), I got 0.

    In debugger is stored as infinity…

    If someone as any clue about this.

    Thanks you all!

  • You can use "Wait for previous actions to complete" before picking objects.

    And you can nest picking, it's reliable :

  • You can make your own (Black & White) and use a Replace Color FX…

    A colored letter from my own, and 4 FX to replace color ex.

  • And for info you can have the "is not" when you RMB on your condition : the X invert

  • Have found a "workaround", use a boolean to stop when I need it.

    In early days when I needed to stop, I could use goto or return :angel:

    Thanks for your help!

  • Hello everyone,

    I search a way to stop/exit/bypass my event to next dt when a condition is met, I've nested "if" and it would be convenient to stop when my 'if' is okay for me…

    Or do I need to write my code differently?

    Thanks forum!

  • Precious advices of you both. Thanks you!

  • Hello all,

    Wondering how to best declare var in events, for optimisation at first. As "old fashioned dev", I know about stack and so on, but don't now how javascript and Construct reacts.

    So is it better to declare on top an event as local, to declare inside the event at startup, anywhere in the event, in a group ?

    Thanks for your thoughts !

  • > Had this message during save :

    >

    > If you use cloud save, check your internet connection : if you loose it, you can have this message (trying to save on cloud, but no connection at all)

    If you run in to a bug or issue in Construct 3, please post it to the GitHub issue tracker here:

    https://github.com/Scirra/Construct-3-bugs

    You must follow the bug report guidelines or your issue will be closed without investigation.

    Don't think it's related to Construct, but my connection ^^

  • Had this message during save :

    If you use cloud save, check your internet connection : if you loose it, you can have this message (trying to save on cloud, but no connection at all)