dop2000's Forum Posts

  • It works for me.

    Try without the "test" folder. Check if the slot.save file is actually created (in Windows).

  • You can't just load the game from disk path. You need to request the file with AJAX, then load from AJAX.LastData

    Also, you are not using loaded layout, change your event #8 to "On start of layout".

  • If you are using "On touch start" event to start moving, in this event it's not possible to predict if it's going to be a short touch or a swipe. So you need to wait several ticks after the touch started, to check if the finger has moved, before moving the character.

    However, if you are using the left side of the screen for touch-to-move, and the right side of the screen for swipe-to-shoot, then you can detect and process both touches separately and even shoot while moving.

  • Local Storage can read Webstorage data?

    I don't know, I'm asking if you've tried it. Since you have a game that saves data to Webstorage, add Local Storage plugin to it and try to read one of the Webstorage keys.

  • You can't prevent clicks from coming through, but you can prevent the event from executing. Simply add another condition to your "On clicked Button" event - "Layer HUD is not visible".

  • Don't use Progress Bar, it's a form control, they are difficult to style and have lots of problems.

    Progress bar is ridiculously easy to make with a sprite or a tiled background object. Simply create a rectangular sprite, set image point position at x=0, and on every tick update its width.

    For example:

    HealthBar Set width max(maxWidth*(currentHP/maxHP), 0)

    Note - max(...,0) expression is only needed to prevent it growing in the opposite direction in case the HP value drops below 0.

  • Search the forum and tutorials, there are lots of examples. I have several demo projects here:

    howtoconstructdemos.com/category/virtual-joystick

  • Does the Tile_01_Breakable has Phyics behavior? Maybe the debris are colliding with it. You need to disable Physics collisions between these two objects. (there is a separate action for Physics collisions)

    Also, to destroy debris after a timeout it's easier to use Fade behavior.

  • 189 is quite old version. If you used any of the new featured added in the past 2 months, you will not be able to open the project in r189.

    Try to open the project, then press F12, open console tab and see if there are any errors.

  • Why? Simply create the player on start of the layout.

    Or use Player.count=0 expression to check if the player instance does not exists.

  • Check the demo in this post:

    construct.net/en/forum/construct-2/how-do-i-18/typewriter-text-effect-41096/page-3

    Also you can try search for "typewriter" on this forum.

  • Have you tried debugging? Run the game in debug mode, pause when the WP mode ends, check all variables. Add Browser->Log actions into the "UpdateWPBar" function, you'll see in the console log when it gets called.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Are you sure Local Storage can't read Webstorage data?

    Maybe you can release another version in C2 which will load Webstorage data and save it to Local Storage.

  • Check out this demo:

    howtoconstructdemos.com/simple-stopwatch

    Also, don't use the 0.01s timer. Default framerate in Construct is 60 fps, which is 0.016s per frame, Timer can't fire faster than that. Use a simple variable to store the start time, and time expression.

  • I think what OP meant is - instead of deleting the entire events/actions, keep them, and highlight indicating that there is an error. Then you can review these events and fix them.