dop2000's Forum Posts

  • Try Platform Info object, it has "On network change" events and you can check these expressions:

    PlatformInfo.ConnectionEffectiveType

    PlatformInfo.ConnectionRTT

    PlatformInfo.ConnectionType

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

  • It's possible to call new functions by string name, see "Function maps" template. In this particular case it's not necessary though.

  • No, you need to use a variable (global or instance). Then do something like this:

    Keyboard "D" is down
    	Add 0.1 to effectVariable
    	Sprite set effect "AdjustHSL" parameter 0 to effectVariable
    

    .

  • Are you doing this with events or with Javascript?

    With events you can use "Object -> Is on layer" condition, but you'll need to repeat this with all objects, or add them to families, for example SpritesFamily, TiledBackgroundsFamily etc.

  • The link you posted is SDK reference (for writing plugins). What exactly are you trying to achieve?

  • Why don't you simply use "Is overlapping" or "On collision"?

  • Up: set frame to (Obj.AnimationFrame+1)%Obj.AnimationFrameCount

    Down: set frame to (Obj.AnimationFrameCount+Obj.AnimationFrame-1) %Obj.AnimationFrameCount

  • I can explain why this happens. When Platform behavior is enabled and you control the character only with Platform actions, it prevents it from falling through solids and always keeps it about 0.5px above the floor.

    When you move the character with actions like "Set Y", on some ticks it may move a little further and actually overlap the floor. (even a fraction of a pixel is still considered overlapping)

    "Is on floor" condition moves the character 1px down to check if it will overlap a solid floor. However, if it's already stuck in solid, this condition returns false. That's why it doesn't trigger and your character continues falling down.

    .

    If you need to disable the Platform behavior for some reason, you shouldn't use its conditions to check for floors and walls, use "Sprite Is overlapping" and "Sprite On collisions" instead.

  • You can hide FileChooser completely (make invisible or move off the screen) and use any other button/sprite to invoke file open dialog. For this you need to set ID on FileChooser object, for example to "FileChooser01" and then run this script:

    "FileChooser01.click();"

    You can also do this with Browser Execute Javascript action.

  • In my case C2 just silently closes every 10-20 minutes...

    I'll try to disable auto-saving, will see if this helps.

  • odiusfly You can try Enhance plugin, it has GDPR support.

  • Yep, that's how I did this in a couple of projects. The are a few things you should be aware of -

    Make sure you don't save too often, for example when an object is dragged, don't save on every tick, save only on drop event.

    Add NoSave behavior to all objects you don't need to save, to decrease the size of saved data and saving/loading time.

    And also this potentially can create hundreds of saves and use a lot of browser storage. So I advise to limit the number of undo steps and recycle/reuse the save slots.

  • You do not have permission to view this post

  • When you set blend mode on the layer, it affects other layers under it.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads