dop2000's Recent Forum Activity

  • Add debug output to your events, for example in event 40 add Browser Log "Not mirrored, frame 0" and so on. If you have other events which change player appearance, add logging there too.

    Run the game, open browser console (F12) and see what happens.

  • The behavior doesn't place the sprite correctly when it's disabled. And the floor/walls checks also don't work correctly when it's disabled.

    So if you need Platform behavior to be disabled, then your only real option here is to use Is overlapping and On collision events.

    You can use "On collision with floor" and then move the sprite in a loop 1px up until it stops overlapping the floor. And this will position the sprite correctly on the floor.

  • 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.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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.

dop2000's avatar

dop2000

Member since 26 May, 2016

Twitter
dop2000 has 280 followers

Connect with dop2000

Trophy Case

  • 10-Year Club
  • Entrepreneur Sold something in the asset store
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Forum Wizard Made 5,000 posts in the forums
  • Forum Unicorn Made 10,000 posts in the forums
  • x5
    Popular Game One of your games has over 1,000 players
  • x2
    Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • Unrelenting Visitor Visited Construct.net 180 days in a row
  • Continuous Visitor Visited Construct.net 365 days in a row
  • RTFM Read the fabulous manual
  • x3
    Quick Draw First 5 people to up-vote a new Construct 3 release
  • x14
    Great Comment One of your comments gets 3 upvotes
  • Delicious Comment One of your comments gets 10 upvotes
  • Email Verified

Progress

30/44
How to earn trophies