COGames's Forum Posts

  • Are you using a static page on your website or a CMS?

    I use a static page.

    I just made sure I had all the MIMES set (I do), thought that was it since two of the required ones were missing, but I'm still not getting a complete update (sometimes it's half updated or not updated at all). When I go into F12 I see this:

    And if I do a refresh when F12 is open, then everything loads. A refresh without F12 open does nothing.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'm having a big problem with caching as well.

    I host games on my website and I have about 350-450 people playing these games each day. I noticed that when I do an update, I've been getting a lot of calls that the web apps are broken. Then I realized the caching problem (which I now see frequently on my side). I tell my customers to delete the browser's cache, however I use a lot of local memory and the player will lose a lot of stuff (not a happy customer). I realized that I can tell them to open up F12 and then do a refresh and it will completely update (in Chrome and Edge). But my players are not tech savvy and this is too much for them.

    I rename the project with every update, but sometimes parts update and other parts don't. So if I added a new sprite, it won't be there, but the new revision is listed. When I go into F12 and do a refresh, then I see the sprite. So, parts update and parts don't. Not good.

    This is driving me crazy. I would love to do updates, to give my customers weekly notifications of new things going on, but I can't risk breaking the app for them since my apps are tied to books, and when the apps don't work they can and will give a bad Amazon review (a bad risk to take).

  • I have wav files (from text to voice) and my new imports (using C3 r225) has them sounding muffled. The existing ones that were imported before the update are clear.

  • Thanks - okay, so when I do that I see that I'm not getting a partial update (no messed up layouts). But when I F5 to refresh it doesn't update to the newest. I know this is kind of a separate problem. Would a good solution (to make sure user has the latest) be to have a php file with the latest version number, and then the app checks against that if not the same then the app forces a reload?

    UGH, never mind. I tried the above and it only reloads from the browser.

  • I host games on my website and have recently been having a problem when I make an update.

    It seems that all the changes are not made at once, and sprites and text get mixed up. This occurs in Safari, Chrome and Edge. When I clear the browsers and reopen, then all is fine. But this is not something my average user can do (I have about 400 young children playing these games a day).

    After researching this, it looks like it's due to proxy caching.

    Is my only recourse to make sure my games are never cached? When I did this (in an .htaccess file), then all updates were fine, but now I lose the quicker loading from cache. If I have to choose, it would definitely be for the games to load perfectly with updates.

  • I have apps with a lot of audio files, and they load into the Chrome browser fine on the first time. After that they take a long time to load (and sometimes they don't seem to load at all). When I delete the offline.json and sw.js files then they will always load fast without hanging up.

    Here is the cp3 file: 1drv.ms/u/s!AobC4q3rBlr6yuBL2sDU1wXwsqd58g

    This is an empty project but with a lot of audio files.

    Steps are:

    1. export to html5

    2. load to a server (from things I've read it has to be https)

    3. Run it.

    4. Close the browser tab and then reopen the app (it may also hang up on a refresh, but not all time).

    5. go into F12

    result of f12:

    sw.js:11 [SW] Update check failed: TypeError: Failed to fetch

  • You do not have permission to view this post

  • You do not have permission to view this post

  • Not 100% sure, but some actions require user input to prevent malicious activity. Sound is one of them, I imagine a browser redirect would be another.

    That makes sense, but you can do a redirect in HTML without user input.

  • When you enter, it should wait 2 seconds and then go to the url.

    If you press the box, it will go to that url (so I know that works).

    How come it doesn't go there when entering layout?

    1drv.ms/u/s!AobC4q3rBlr6yNU7eE7fnHNAQwK11w

    Tagged:

  • You're adjusting the angle of the object and not the angle of motion for bullet, this is always the same. Because you have 'set angle' enabled it will keep setting the angle to the angle of motion.

    The only way I can see to get this to work (so the rectangle continues the angle it had before stopped), was to use an instance variable (saving the angle on stop and loading it into bullet angle when resumed). Is this the best way to do this?

  • Is this a bug or am I missing something?

    If you change the angle of the pink rectangle by hitting the square and then hit the Stop Button, the bullet speed = 0 and the pink rectangle stops. When you hit the Go Button, the bullet speed = 55 (and it starts moving) BUT the angle changes to 0 degrees, which I believe should not happen. Shouldn't it just continue at the angle that was set when stopped?

    1drv.ms/u/s!AobC4q3rBlr6x_MhE6xzNi4cv8AXrA

  • Great! Thanks so much!

    I wish there were more examples how to use families. This helped so much! :)

  • Thanks, but your file doesn't do what the original does.

  • I keep wondering if this can be done a better way.

    When the same code is done for different objects, I am always at a loss at how to make it into a function. It seems like it should be able to be done, but I can't figure it out (I tried with parameters and didn't get it to work).

    In the cp3 file, when you touch one of the top animals, it creates the same animal that gets added to an array (the array holds size and position). Is there a better way to do this, rather than duplicating the code?

    1drv.ms/u/s!AobC4q3rBlr6x_MZs0TGsVxRUt9UhQ