dop2000's Forum Posts

  • In French language there is always a space before exclamation or question mark. So I would like to replace it with a non-breaking space to avoid situations when it's wrapped to the next line like this:

    I tried copy-pasting different whitespace characters, using JS code "String.fromCharCode(160)", but nothing works. Looks like all whitespace characters are replaced with a regular space.

    Is there any solution?

    Tagged:

  • It's not the size of the layout that slows the device, but the number of objects on it, and behaviors/effect on these objects.

  • I also don't advise using "Wait" in game mechanics, especially for long delays. You can do it for unimportant things, like create particles, wait 1 second, destroy particles. But imagine this code:

    In these 5 seconds the enemy may be killed, and you have no way of cancelling that delayed animation change, other than destroying the enemy.

    Another big mistake is having "Wait" in events that are running on every tick. Check out this comment.

  • You need to study game templates included in Construct (Kiwi Story and others).

    Trying many combinations of events in hope that some of them will work is a very wrong approach. You need to understand what you are doing if you want to create a working code.

    From what you described, you are using a "state machine" model. I understand why many beginners do this, at first it looks simple and logical, but as your project grows bigger, it becomes a minefield. You end up with dozens/hundreds of events checking and modifying all kinds of variables on every tick, lots of "trigger once" and "waits" in different placed. It's a delicate mess and any small change can potentially ruin everything.

    There is nothing wrong with having a few state variables, but building an entire game like this - I am strongly against it. In my games most of the events are triggers and functions. For example:

    On timer "Attack" -> Play "Attack" animation
    On "Attack" animation end 
    	-> Call function "DealDamageToEnemy"
    	-> Restart "Attack" timer
    etc.
    

    You can clearly see the sequence of events here, it's much easier to develop and debug this way.

  • Are you using the loader layout properly?

    construct.net/en/tutorials/loader-layouts-custom-loading-9

    It took a long time to load the first screen, and then it just got stuck at 5%.

  • You can make it a million pixels long if you like. But I would recommend using this method instead:

    howtoconstructdemos.com/generate-random-levels-from-pre-built-scenes

  • If you register an account and log in, you'll get 25 extra events. If this is still not enough, you need to purchase a subscription.

  • You can compare in a parent event if the first two letters are "en". And then in a sub-event check for a more specific locale - if "en-ca", then Canada, everything else is England.

  • You can do it without an array, just save the color (animation frame) in a variable. If you want to allow de-select, then simply don't destroy the circles until player confirms the chosen color. Or add an option to reset and start over.

  • It's easier to make a demo, than explain..

    dropbox.com/s/3nrvoqrw1rj4651/PlayerColors.c3p

  • This is not possible. You can bulk import into one sprite, duplicate this sprite, then delete some of the images.

  • You can load multiple images as frames into the sprite animation. Right click on an empty space -> Import frames From files.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Run the game in Debug Mode and check all instances and instance variables after every click.

  • This is an old version, better download the latest version from Eren's repository:

    github.com/erenertugrul/construct-plugins/tree/master/ported_plugins/lunarray_litetween

  • Yeah, this looks much better, but you should also give your objects proper names.