dcrew's Recent Forum Activity

  • Oh, I think you must have been caught out by this point: unless the offline.appcache changes, the browser won't check for an update. So you have to re-upload offline.appcache every time you update your game. To clarify this I edited the offline article with this section towards the end:

    b]Remember to re-upload the offline.appcache file

    > If you're updating even just one file of your game, you must also re-upload the exported offline.appcache file - every time! Otherwise the browser will assume nothing has changed and won't bother downloading the update. (The offline.appcache file must have changed for the browser to check for an update, and Construct 2 adds a timestamp to the top of the offline.appcache file to ensure it always changes.)/QUOTE]

    Lol I thought that file was for debugging <img src="smileys/smiley17.gif" border="0" align="middle" /> I didn't even upload it, stupid me! <img src="smileys/smiley9.gif" border="0" align="middle" /> <img src="smileys/smiley32.gif" border="0" align="middle" />

  • There should be an action "Retrieve last keyboard input"

    For example (of use): (key bindings etc)

    • On Keyboard.PressAnyKey:

    = Text1.Text = Keyboard.GetLastInput

    that event would simulate like:

    If I press J. then text1 will set to "J". Same goes for any key

    ____________________

    Also, could do with a keyboard special conditions, For example: (the special inputs would be "Shift", "Ctrl", and "Alt")

    • On Keyboard.SpecialInput

    + On Keyboard.PressAnyKey:

    = Text1.Text = Keyboard.GetLastSpecialInput & "+" & Keyboard.GetLastInput

    that event would simulate like:

    If I press Ctrl+J. then text 1 will set to "Ctrl+J".

    If I press Ctrl+Shift+J. then text 1 will set to "Ctrl+Shift+J" etc.

  • pdating your game

    You might wonder: if the game is always loaded from disk, how do you update your game?

    If you're online and you load the game, the browser loads from disk instantly as before. However, as the game is running, it checks for an update in the background. If you've uploaded a new version, the browser downloads it and saves it to disk. Then, next time you load the game (this includes refreshing the page), the browser loads the new version. Until then, the user keeps playing the old version.

    The Browser object has two conditions to detect this happening: Is downloading update and On update ready. Is downloading update is true if the browser is downloading a new version in the background. On update ready triggers when the download has finished, and the new version is ready to be loaded. If this triggers on the game's title screen, you might want to prompt the user to reload the page (using the Browser's 'reload' action) so they're playing the latest and greatest version. However, you probably don't want to interrupt them mid-game!

    This allows you to easily make a simple auto-updater for your game. You could show a text object saying "Downloading an update..." to notify the user an update is being downloaded. When On update ready triggers, you might want to show a message saying an update is ready, and display button which reloads the page when clicked.

    This I didn't read, might check it out.

  • What was the problem? It's good to write it down so anyone searching for a similar problem and finding this thread can find the solution as well.

    FYI I think how the updating works is described in Offline games in Construct 2

    (Trying my best to be formal <img src="smileys/smiley4.gif" border="0" align="middle">)

    You see Ashley...

    this..

    f everything is set up right, the browser will save your entire game to disk after loading it for the first time. After that, if you load the game again, it loads from disk. Nothing is downloaded at all! Usually that means the game loads instantly as well. This means even if you're offline, you can still load the game and play.

    Is a big problem, Because now when I update my game I can't just replace the c2runtime.js I have to name the other new one to c2runtime-0.1.75.js or whatever the version is, and then update my play.php page, Now even though that's no problem.. storing the c2runtime.js to load every time can be a really bad thing.

    1) It will waste server bandwidth

    2) It makes it annoying to update a game

    3) Some people may have trouble like I did, And for people who don't know the answer, well... Goodluck!

    This is fine, but the cache should delete itself if the browser get's closed and re-opened, or if you press Ctrl+F5 too!

  • 0.1.75 Released!

    Click Here to Play!

    Read first post change-log to see changes.

  • Nevermind, found the problem.

  • Actually, the problem still remains! As I have changed existing sprites in the game but they haven't updated on the browser upload. it's as-if it's loading previous caches.... which is extremely annoying, and makes it hard for me to update my game.

  • I have found an alternate way. but I still don't get why that should happen.

  • I've tried Ctrl+F5 (which is supposed to clear all cookies/cache of that page)

    I've tried closing the browser and re-opening it.

    One time I literally had to go-to chrome options and delete the week's browsing cookies and cache just for the game to update.

    And yes I have the latest chrome.

    Any suggestions?

  • 0.1.65 Released!

    Click Here to Play!

    Read first post change-log to see changes.

  • Right, and then it goes to the next one.

    It's not a big deal, if you don't want it triggered more than once you can just add the trigger once while true as a sub event.

    I know, As much as I'd love to explain my 2D rendering system I made, I'm not going to. Because it renders the world and every time it renders that event will run.. and so on.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • > Did you do anything like rename or delete to the files of your project before you opened your project in C2?

    No. This problem appeared after I added a couple of events and launched a preview.

    I've already solved this issue, but let it be for your information :)

    This is a major bug for Ashley, and my only wish is to help him iron-out this bug! <img src="smileys/smiley17.gif" border="0" align="middle" />

    Did you add any new animations or re-name or delete any? before debugging.

dcrew's avatar

dcrew

Member since 25 Sep, 2011

None one is following dcrew yet!

Trophy Case

  • 13-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • Email Verified

Progress

15/44
How to earn trophies