dop2000's Forum Posts

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

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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Pixel-based collision mask is not possible in Construct.

    Will this collision polygon work for you?

    If not, maybe you can make this shape from multiple sprites - one big circle and many small rectangles attached to it.

  • smumpy I'm pretty sure setting volume higher than 0 will do nothing.

    Also, the volume function is not linear, -10dB is not twice as loud as -20dB. So if you use a linear slider bar, it will be difficult to control the volume with it. Please see the link I posted above.