Asmodean's Forum Posts

  • EDIT : I tried it. It is fine, Browser mode is recongnized but not Standalone nor Minimal UI...

    What does it shows in Browser.DisplayMode when in standalone?

    If it always shows 'Browser' then negation will have no effect.

    After update, I prompt a button to let user reload the game but reloading the page doesn't run the updated version but previous version.

    Maybe it's cached?

    If you force the App with Ctrl-R to reload does you get the new version?

  • Variable1 is a string and you compare it with an integer. Either make variable a number or compare it to a string.

  • Laurent in the manual is mentioned that the browser is changing the display mode of the project to its app form (typically standalone display mode), if is installed. You can check that with the condition 'compare display mode' in the browser plugin, if it's in 'standalone'.

    Maybe that the easiest solution. I can't say how reliable that is you have to test it for yourself.

    It's all in here: https://www.construct.net/en/make-games/manuals/construct-3/plugin-reference/browser

  • You need to call 'Check item exists' before use 'On item exists'

    Check item exists:

    Check if a key exists in storage. This triggers either On item exists if the key exists, or On item missing if the key does not exist. If the item exists, the ItemValue expression is set to the key value in the On item exists trigger, so there is no need to use a subsequent Get item action to read the value.

    On item exists

    Triggered after the Check item exists action completes if the key checked does indeed exist. In this trigger the ItemValue expression is also set to the value of this key, so there is no need to use another Get item action to read it.

    https://www.construct.net/en/make-games/manuals/construct-3/plugin-reference/local-storage

  • Use RegexReplace

    RegexReplace(TextWithTabs,"\t+","gm"," ")
    
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I like that a lot, especially that you don't use spaceships and asteroids. Music is good, controls with Gamepad is very good. The only suggestion i would have is that the player could wrap around in the playfield but the enemies not. So you could get rid of your pursuers.

    And one last thing, if you use the arrow keys + space for controls some keyboards can have ghosting with that key combinations.

    • Post link icon

    People already familiar with Construct's JavaScript coding feature will find it much easier to develop addons, and vice versa.

    I have my doubts about that. It would be easier to not handle 10 different files to make an addon. But i will cope with it, as always.

  • Are you sure it's not another problem? It works fine for me.

  • Like press once, and done. Instead of holding R down.

    Now I understand. But it should work. Only press R once should work.

  • I like how you have done it. It's really neat and tidy.

    I don't understand what you mean with: I rather just press the button.

    Don't you want an automatic and a manual reload?

  • Your "Every 1.0 seconds" is a subevent. If you press R it will start to wait for 1 second and it will start every tick as long you press R. So your subenvent will not executed. If you release R the subevent won't be executed at all.

    Make it an event not a subevent.

  • If it bothers you, disable it.

  • I wonder if that is a bug that you can't choose a folder in 'Play'. Anyway in 'Play (by name)' you can choose a folder, but you can't pick your audio file directly you have to type the name.

  • The Text object TxtScore is not long enough. If the score is going over 99 to 100 it can't display 'score:' and the '100' in the same Text object. Make it a little bit longer and it should work.

  • Simply download the .c2addon file, then drag and drop the file in to the Construct 2 window. Construct 2 will prompt to ask if you want to install the addon. If you approve the install, you must restart Construct 2 before the addon becomes available.

    construct.net/en/construct-2/manuals/construct-2/installing/third-party-addons