dop2000's Recent Forum Activity

  • If you mean Button object, you can do this with CSS:

    scirra.com/tutorials/1283/easily-add-css-effects

    If your button is a Sprite, simply add an event like this:

    Mouse cursor over MyButton : MyButton set animation frame to 1
    Else : MyButton set animation frame to 0
    
  • What you can do is to create a Global layer, put these sprites on this layer, and then add a layer with the same name to other layouts. This is a common method when you want to have the same layer (for example "HUD") on multiple layouts.

  • I'm guessing all objects on this layer simply appear off-screen when you change orientation. Try running the game in Debug Mode and check their position. If this is the case, Anchor should help.

  • I don't know if you can save to JSON directly from Excel, but you can definitely save to CSV and convert to JSON using online tools. Also, you may need to manually edit JSON header after that. (C2 had a different JSON format, I'm not sure about C3)

  • You need to make two versions of UI layer - for portrait and landscape layouts. Or you may be able to automatically adjust objects on the UI layer with Anchor behavior.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • So you currently only have one Spriter object, for the player, but planning to add many more for enemies, trees etc.? If all objects are going to be Spriter objects, you can add them to a family for z-sorting.

    I don't know which method will be faster. You can try the one that doesn't use families for now and modify it later if you notice that it uses too much cpu.

  • Try creating a new post about this, maybe someone who knows the answer will see it.

  • In event 2 you set player angle to (mouse.x, mouse.y)

    You need to do this only when playing with mouse. So you can add a variable ControlType and check if ControlType="mouse", then set player to mouse position. If ControlType="gamepad", set player angle to player.8Directions.MovingAngle or something similar.

    .

    Also you should consider making separate event groups for different control types. Then activate/deactivate these groups depending on which control type is used. This will make the code more manageable and easier.

  • I don't see the "Shake screen" action on your screenshot. Are you sure it's triggered only once? You can add something like Browser Log "Shaking" into the same event, open browser console and see how often this event is triggered.

  • System Sort Z-order action is very efficient (performance wise), but to use it with multiple sprites you need to combine them into a family.

    You can do the same without a family, but this may work a bit slower on large layouts:

    .

    Also, are you using Spriter to animate the player? Then you probably already have an invisible sprite like "PlayerBox" (which your Player Spriter object is pinned to). So you can put that PlayerBox sprite into the family together with trees, z-sort them and then use "Z Order Move Player to object PlayerBox" on every tick.

  • You can load this array into Excel, rotate the table and save to JSON. Or save to CSV and then convert to JSON using any online converter.

    You can probably even do this without Excel, using only free online tools. Convert JSON to CSV -> transpose CSV -> convert CVS to JSON -> load JSON back to C3.

  • AXLL this post is about NW.js

    On mobile you can try "Browser - On suspended" event.

dop2000's avatar

dop2000

Member since 26 May, 2016

Twitter
dop2000 has 259 followers

Connect with dop2000

Trophy Case

  • 8-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
  • x13
    Great Comment One of your comments gets 3 upvotes
  • Delicious Comment One of your comments gets 10 upvotes
  • Email Verified

Progress

28/44
How to earn trophies