brushfe's Forum Posts

  • Without any conditions, all objects are picked. So when you say "sprite -> subtract 1 health", it's saying "subtract 1 health from them all".

    But once a condition is added to an action, it starts looking for an individual instance. So when you say "Sprite health ≤ 0", it's asking "if you find one Sprite with health ≤ 0, do [this action]". It'll pick out one random instance of Sprite, and apply the action to it.

    So "For each Sprite" means you want all the instances that meet your conditions, not just one random one.

  • Great question! I'd love to know if there is (or could be) a quick erase feature or something for tilemaps.

    What I've been doing isn't great, but in case it helps: after creating the tilemap full of unwanted tiles, I select all the tiles in the tilemap window (the place where you pick tiles to draw) so there's a big selection of tiles, like 10x10 or more. Selecting the eraser in the tilemap window turns that selection into really big eraser, so you can quickly erase huge areas of the tilemap object at once, and clear it out quickly.

    Not perfect by any means (and likely quite obvious), but it helps. Hopefully there's a better answer!

  • Ah, ok! That makes sense! Thanks for the update. Also, this folder import feature is a fantastic addition. Really saves a huge amount of time!

  • I love the option of removing the Xs and right clicking to close!

    I'm not sure what the state of the suggestions platform is, but it'd be a great idea to add there.

  • DiegoM Is it possible to disable the "version" number automatically added to folders? It defeats the purpose of setting up folders with specific names in advance, since you have to rename all the folders in C3 to remove these numbers.

    (in this example, the folder should just be called "General", "Ground", and "Stand")

  • You do not have permission to view this post

  • I've found the problem! I'll post bug report soon -

    Saving as "Project folder" is broken in the latest beta.

    Go into C3, open Kiwi Story, save it as project folder, and upon completion, you get the same error as me (and it persists after refreshing C3).

    The really strange thing is, when I opened the new beta earlier today for the first time, I didn't even open my project yet, and the error appeared at the top of C3. Maybe C3 doesn't like the "Recent Items" history if it has a project folder? Who knows.

    Awesome — nice detective work!

  • Same here!

    It started after a crash opening a Local Project Folder, when I got this crash message:

    Error report information

    Type: unhandled rejection

    Reason: Error: missing placeholder '{0}' in string substitution Error: missing placeholder '{0}' in string substitution at Function.ip.fTa (https://editor.construct.net/r278/main.js:1008:245) at q8b (https://editor.construct.net/r278/main.js:1027:477) at Function.f.q0 (https://editor.construct.net/r278/main.js:200:274) at window.aic.Idb (https://editor.construct.net/r278/components/misc/startPage2/startPage2.js:9:342) at xib (https://editor.construct.net/r278/components/misc/startPage2/startPage2.js:4:177)

    Stack: Error: missing placeholder '{0}' in string substitution at Function.ip.fTa (https://editor.construct.net/r278/main.js:1008:245) at q8b (https://editor.construct.net/r278/main.js:1027:477) at Function.f.q0 (https://editor.construct.net/r278/main.js:200:274) at window.aic.Idb (https://editor.construct.net/r278/components/misc/startPage2/startPage2.js:9:342) at xib (https://editor.construct.net/r278/components/misc/startPage2/startPage2.js:4:177)

    Construct 3 version: r278

    URL: editor.construct.net/r278

    Date: Tue Jan 11 2022 11:55:55 GMT-0500 (Eastern Standard Time)

    Uptime: 13.3 s

    Platform information

    Browser: Chrome

    Browser version: 97.0.4692.71

    Browser engine: Chromium

    Context: browser

    Operating system: Mac OS X

    Operating system version: 10.15_7

    Device type: desktop

    Device pixel ratio: 1

    Logical CPU cores: 8

    Approx. device memory: 8 GB

    User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36

    C3 release: r278 (beta)

    Language setting: en-US

    WebGL information

    Version string: WebGL 2.0 (OpenGL ES 3.0 Chromium)

    Numeric version: 2

    Supports NPOT textures: yes

    Supports GPU profiling: yes

    Supports highp precision: yes

    Vendor: Intel Inc.

    Renderer: Intel(R) Iris(TM) Plus Graphics OpenGL Engine

    Major performance caveat: no

    Maximum texture size: 16384

    Point size range: 1 to 255.875

    Extensions: EXT_color_buffer_float, EXT_disjoint_timer_query_webgl2, EXT_float_blend, EXT_texture_compression_rgtc, EXT_texture_filter_anisotropic, EXT_texture_norm16, OES_texture_float_linear, WEBGL_compressed_texture_s3tc, WEBGL_compressed_texture_s3tc_srgb, WEBGL_debug_renderer_info, WEBGL_debug_shaders, WEBGL_lose_context, WEBGL_multi_draw

  • That did it! So simple, gah! Thank you very much!

  • Happy new year!

    I'm trying to create movement for a game with a perspective similar to a beat-em-up. Whether I use 8-direction or Custom Movement, there's a serious judder when the object moves diagonally.

    If anyone has any clues on how to smooth out the movement, I'd really appreciate it!

    The movement code is here, if it's helpful:

    drive.google.com/file/d/1bzP6_lgwQRshSsyWBhXLKZoK8UVwP1ju/view

  • It looks fantastic! Great work and thanks for sharing it!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hello! I feel like there was a plan to review the suggestions page every six months or so, to try and make the platform more applicable - is that still the case?

    (There are a lot of great ideas on there and I'd love to see how this new approach to user input works out.)

    Regardless - happy holidays to everyone! It's been an amazing year for construct, so a huge thank you to the Scirra team. And to all those who've been helping each other out with their projects!

  • You could also try giving each powrplant a boolean called IsActive. It starts false, but when the plant gets activated by three workers, you set it to true.

    Then, whenever you run a check to see if a powerplant should get activated, also check if IsActive is false. So you'll only ever activate plants that have false booleans.

  • I don't know if this solves your problem, but it looks like both those blocks of code are running on each mouse click.

    The first block (if WorkersAssigned ≥1) sets Minerals.WorkerAssigned to 0. Then the next block checks if Minerals.WorkerAssigned is ≥0, which it was just set to, so it runs as well.

    If that's causing you problems, you could try putting an else statement in that second condition, so it reads "else if WorkersAssigned ≥0". That way the mouse click only checks for ≥1 or ≥0.

    You might also need to pick a specific Minerals object. Right now, your actions are picking a random member of the Minerals family, which could also cause trouble (unless you only have on Minerals object).

    Hope something in there is helpful!

  • That code looks like it's going to restart the animation every tick -- so it's essentially stuck playing the first frame of the animation over and over again.

    You might try removing the condition

    • Every tick

    and replacing it with an inverted animation check

    • X is playing animation "Walking"

    which you can do by creating an "is animation playing" condition, right-clicking on it, and selecting "invert".

    In short, this new code would only play the animation if it wasn't already playing.