Asmodean's Forum Posts

  • My guess is that for Unity are so much more examples that an AI can lern from. For scripting in Construct there are only the manual and a few examples and that is not enough for useful code.

    I'm afraid if you want use scripting you have to go the hard way an learn it yourself.

  • That looks like a mix between Python and Javascript, that won't work.

    And I have my doubts that an AI can do anything usable in construct.

    Maybe pure Javascript for scripting, but without understanding what the AI is generating, I think it will still not useful for you.

  • My attempt with regex:

    You can put it all in one line, if you want.

  • You do not have permission to view this post

  • You do not have permission to view this post

  • Right Side in 'Project', double click on your even sheet.

  • It's like R0J0hound says. With scripting it's possible. I made a very basic example. This player can only play Soundtracker mods and is for non-commercial use only.

    You have to look for a player for your requirements.

    https://drive.google.com/file/d/18g12o-tUVg5lNwFMvlGKCGNzKWl7iMo9/view?usp=drive_link

    I used atornblad's player

    https://github.com/atornblad/js-mod-player

  • When it's not browser it shows nothing. So I guess negation will do

    It should.

    I'm working on a mobile version where Ctrl-R is not available. Only the reload action of the Browser plugin. If it is cached, is there a way to clean cache from construct ? Don't think so...

    On mobil I can't really help. I would make a new topic for that question otherwise it will get lost here.

  • 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"," ")
    
  • 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.