dop2000's Forum Posts

  • 'Switch case' won't be much shorter than a bunch of 'ifs'.

    Like I said, you can use chooseindex or ternary operators to create objects by name:

    Create (a=1 ? "Zombie" : a=2 ? "Goblin" : a=3 ? "Troll" : "Skeleton")

    If you need to assign an instance variable you will have to add all these objects to a family and pick last created instance:

    Pick Last Created MonstersFamily

    MonstersFamily set health to (a=1 ? 5 : a=2 ? 10 : a=3 ? 50 : 3)

  • This is an old and known problem with texts in C3 - some fonts are rendered differently on different platforms.

    Try other alignment options - top, bottom.

    Try a different font.

    If nothing helps, use a spritefont.

  • You can add NPC sprite and the array to a container. Then each NPC instance will have its own instance of the array.

    Also, arrays are global by default, but you can change this. Then it will be created only when an NPC is created. Find more about containers in the manual:

    construct.net/en/make-games/manuals/construct-3/project-primitives/objects/containers

  • Can you give an example of "somthings//////////////////"?

    Some things will be possible to optimize, but you need to be more specific.

  • I think the number of images matters as much as their size. I have a project with about 15K very small images. Their combined size is less than 50MB. And it still takes about a minute to render spreadsheets on a mid-range laptop.

    My solution was to upgrade my PC..

  • I believe if you are using the latest Greenworks/Greengrinds addon and NWJS 82 or higher, you don't have to add any of those libraries.

    You only need one files - steam_appid.txt - if you want to test without uploading to Steam.

  • Export the game with DevTools checkbox enabled. Add steam_appid.txt file to package.nw

    Launch the exported game (you don't need to upload to Steam). Press F12 and check if there are any errors in the console.

  • Did you set the resolution of DrawingCanvas to 1x1 before loading ImageData? I believe the size of the array needs to be exactly the same as the canvas resolution.

  • Check out this demo, I believe it does what you want:

    howtoconstructdemos.com/using-flood-fill-for-drawing-canvas-to-make-a-coloring-game

  • Do you know of any sprite recoloring things?

    Just add a bunch of frames or animations - for each color.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I think pandabear7413 means the first preview after loading the project. I also have to work with large projects with lots of images, and the first time I click preview, it takes 1-2 minutes to re-generate spritesheets. If I have to load a different project version - that's another 2 minutes of waiting to preview it. Accidentally closed the editor - another 2 minutes. These minutes add up to many hours over the course of development..

  • Yeah, same.

  • Or you can make your own alternative to the Particles object by spawning a bunch of small sprites with different behaviors - rotate, bullet, sine etc. Randomize their parameters on creation.

  • How exactly can I do this? Also, thanks for the reply! (P.S. I'm using Construct 2)

    Oh, that's a C3 feature.

    I think your best bet is to find someone to convert MIDI addon for C3, or find an alternative.

  • I don't know if it's allowed in free version, but you can set a sprite to be emitted by particles. So all your particle objects can use the same sprite, and you can apply color-changing effect to the sprite. Or simply add animations/frames with different colors to the sprite.