nacra's Forum Posts

  • Alon, some quick comments:

    - In Construct events, like I think you're seeing, the loop and pick are combined (e.g., your Slomper_Red Choose_random <= 0 condition). In your example, creating a separate loop and condition would take up one more line than what you have now. I would use a for loop if I needed an index value and/or really wanted to walk through the whole set of instances.

    - For variables, you might want to use a single Velocity instance variable and store +/- (2,...,6) in it, which could replace your Choose_random and Direction variables. Sometimes that's better or sometimes not, and the most important thing is what makes sense to you and is easiest to work with in your project.

  • Nico, if I understand correctly, that's not going to work for you. Even though both are written in javascript, plug-ins for Construct must be written specifically to support the Construct plugin APIs. Where NPM is a collection of node.js plug-ins.

    So you could take the source of an NPM plugin, if the license allowed, and port it to Construct.

    SDK docs

    https://www.construct.net/make-games/manuals/addon-sdk

  • Ome6a, you might look at the Javascript plugin https://www.construct.net/make-games/addons/1/javascript to move more demanding code and data out into javascript, instead of running it all in C3 arrays and event sheets. And then leave C3 events to handle the rendering. I don't have much experience with it yet, but it seems promising so far.

  • Instead of “every tick”, try “every 0.3 seconds’. Vary the lag on that event until it feels right.

  • Piranha, I know what you mean about working with boolean variables, where you can't set the value with an expression, which is different from string and number types. Unless I'm missing some technique? That seems odd, but must be a design choice in Construct, maybe to reduce developer errors.

    I use booleans like you describe, toggling them from within a function, for example.

  • Andrew, I guess you’re setting a specific start location? Maybe with x, y variables?

  • Yes, you can use MultiPlayer object values like that. Check out the "Multiplayer: real-time game" example project.

  • MadDuck, I'd suggest trying out Construct 3, run through a few tutorials and see if you like it. Every time you do that, with a different engine, you're less of a newbie.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks, Stu!