COGames's Recent Forum Activity

  • 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:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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

COGames's avatar

COGames

Member since 20 Dec, 2015

Twitter
COGames has 2 followers

Trophy Case

  • 8-Year Club
  • Forum Contributor Made 100 posts in the forums
  • RTFM Read the fabulous manual
  • Email Verified

Progress

11/44
How to earn trophies