dop2000's Forum Posts

  • Where do you get the value from JSON and set the scale to the body? Is it in "On Start of layout" event? Then change the scale of baby arms/legs in the same event.

    You are either doing this before the hierarchy is created, or on every tick, it's not clear from your screenshots. There is no point in updating the scale on every tick.

    Also, like I said, use "Pick children" instead of picking by Member variable. It's possible that the variable is not yet set or set incorrectly, that's why it's not working.

    Try "Body pick children" and if this doesn't work, please post a screenshot of the event sheet showing all relevant events.

  • 500 instances isn't too bad, but if they are animated or have effects or behaviors on them, this may be the cause of poor performance.

    An obvious solution is to use a tilemap. Or perhaps you can paste the tiles on a single DrawingCanvas and then destroy them.

  • Your map is made of tiles and each tile is a sprite? How many instances of these tiles are there?

  • Looks like you are not using hierarchies properly. You can set "transform width/height" for all children in a hierarchy. Then when you change the scale of the parent object, all children will be scaled automatically with it.

    You also don't need to link parts of the hierarchy with instance variables. If collider_char is the parent object, to pick its head you simply use "collider_char Pick Children Head" condition.

    You can create a family called Limbs for all arms/legs sprites. Then the code may look like this:

    if Body Scale=0.5
    Body pick children Limbs : Limbs set scale to 0.7
    
    
  • Try to unpack it, maybe the archive is corrupted.

    Check error messages in console in the editor.

  • Without the steps to reproduce, there isn't anyone can do I suppose.

    Are you using hierarchies? Do you create/destroy them in runtime? Are there objects with Persist behavior in hierarchies? And do you use System Save/Load actions? From my experience, a combination of these things can sometimes cause similar errors..

  • You can use layout scale.

    If you don't want to scale the layout or layers, the only other option I can think of is to change the size and position of all objects.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I suggest saving your project as a folder. After the first time saving it will go much faster.

  • You can use a different expression when timescale=0 with a fixed value instead of dt, for example 0.016 (which corresponds to 60 FPS).

    Or calculate your own dt from fps value:

    If timescale=1 : lerp(width,xpbarwidth*(xp/maxxp),XPBar.dt*4) 
    Else: lerp(width,xpbarwidth*(xp/maxxp),(1/max(fps,30))*4) 
    
  • You can do this:

    But I'm not an expert in JS, so this solution may not be a good one.

  • You need to post here:

    github.com/Scirra/Construct-feature-requests

  • How can I change the settings so that Construct 3 doesn’t download the NWJS version every time for each platform when i try export game?

    C3 should download each version of NWJS only once. It's then kept in browser storage.

  • Have you tried this?

    runtime.globalVars.varName = button;

  • I mean, the function creates a battlefield icon, but picks the last grid icon instead of the battlefield one, thus changing its size, position, etc.

    I doubt this is the case. If "Pick last created" condition goes immediately after "Create" action, then it should pick that created instance.

    Perhaps the function is called with an invalid objectName? In this case the Create action will not create anything, and "Pick last created" will indeed pick some previously created icon.

  • Try searching the forum for something like "idle income", there are lots of posts.

    Use Date.now expression of the Date plugin to get the system time in milliseconds:

    construct.net/en/make-games/manuals/construct-3/plugin-reference/date

    While the game is running, save the time to Local Storage every several seconds or so. When the game is launched, try to retrieve the value from Local Storage and calculate how much time has passed.