COGames's Forum Posts

  • My HTML5 game runs fine, however, I have a ton of audio files which is creating a problem when using AJAX to get text files.

    Here's what I do:

    1. on start of layout I request thru AJAX a text file and I get it immediately.

    2. Then I press a button to get the same text file and it takes about a 40 seconds to get. Note that this project has many audio files loaded in the sound folder.

    3. When I do the same exact thing in a different project, with no audio files loaded in the sound folder, I get the text file right away when the button is pressed.

    Note that the audio files are never used, just loaded into the sound folder (this is from watering down my project to find the cause of the AJAX being so slow).

    Any ideas?

  • My goal is to have the user write on the screen like a whiteboard.

    Currently I'm just creating a dot when in touch, and this works, until the user moves too fast, then you get spaces in between.

    So, I tried creating a line to link the dots together (using setting angles and distance), and that only looks good if the line is very thin (and I'm going for a thick line).

    Any ideas?

  • It's a sprite that has a bullet behavior. Usually in the debugger for all sprites, when one is selected, I can see all the information (the instance variables, layout info, bullet info, etc). Once in a while, all that info goes missing, and all I see is the "Tools destroy" button (as in my posted image).

  • I have an object selected, which is not doing anything it's supposed to be doing. The debugger is not showing the typical object information, instead I see this:

    1drv.ms/u/s!AobC4q3rBlr6m8I49lLeob33NVKfIQ

  • Thanks.

    I did get around it by assigning instance variables to the text object for the player's name, so I would know if it was the first time in. So when I get to the layout to load the scene I check the variable and if it's the first time in I delete all objects. Just needed to sleep on it, lol.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I have a little kids' game where each kid can save a scene that they create. But, if the kid's account is deleted, then I would like to delete the scene for that one account. As it is, if the user deletes the kid's account and enters a new kid with the same name (this happens much more often then you'd think) then that kid will inherit the scene from the previous kid.

    As it is, I can only save & load scenes, but not delete.

  • so they can take a picture, and then select it to use in the game?

  • Thanks, it seems it was something going on with my host. It worked itself out. :)

  • I've been updating my game and suddenly there's a red loading bar and it doesn't get past this state. Is this because my game is too big or something?

  • Can I ask you if you ever got this msg when uploading the APK file:

    "Your app currently targets API level 14 and must target at least API level 26"

    Early today I uploaded a file fine, then made one tiny change, and the got the above message. I can't figure out what to do now.

    Nevermind, I put the config file in the www directory and it worked. I did this before and forgot to do it with the new file.

  • How do I speed up audio, so for a motor sound it sounds like the car is going faster?

  • From my experience even huge text files load from project files in milliseconds on all browsers. However if you are displaying that text in a text field then that takes forever to load into the field in chrome compared to other browsers.

    Interesting. I'm actually loading it into a text object and then putting it into an array (I do this for all the words in the list until they're loaded). Maybe I should use a global variable instead. I'll try that and see what happens.

    Thanks

    Okay - I made the change but there's no difference.

  • Are you using AJAX to request files? Could you post a screenshot of your code?

    Yes, using AJAX (note that in my original post I accidently wrote JSON, which is incorrect).

    The thing is, in all browsers exept Chrome, the text file loads quickly. In Chrome (if the browser is cleared), the first text file requested takes a very long time to load (I have added a message to the user so they know something is loading - but it can take over 20 seconds). Note that the text file being loaded is about 1k, just a list of about 30 words. Once it's loaded, then all other text files will load at a normal speed. And if I close the game and reopen it, all text files load at a normal speed. It's just the very first file being requested at the very first time going in (in Chrome).

    I understand how audio files get loaded (sounds and music), but what about .TXT files?

  • I'm having trouble in Chrome, where text files are gotten using AJAX, however, on the first time a text file is requested, I don't get anything from the file (no error either). If I wait (like 30 seconds) before initiating the JSON get, then it works. This is only in Chrome. This only happens the first time I open the game in Chrome once the browser was cleared. After that it always works.

  • Nevermind, turns out I had it set to preload all audio sounds (and I have a lot). Turned that off and now it's speedy quick

    UGH, but now in Chrome the audio is all delayed by about 5 seconds!

    Edited to add (if anyone reads this and cares) that preloading the audio that I need in a layout at the start of the layout, then it works in Chrome. Note that I'm using the latest release R259.