Fengist's Forum Posts

  • You can make one version of your game with host events only, and a client version that only joins rooms as peers.

    I would LOVE to see a game, demo, something, that uses the official multiplayer plugin in this capacity. I recall a few years ago playing on the official mp demo with a number of other people and found the rubber banding and lag to be horrendous. If anyone has this working smoothly, I'd love to see it.

  • Well, in a quick search I found that you're going to need Acrobat installed on the cell phone. If it isn't, it's likely assuming it's just a file for download and doesn't know how to open it.

  • If you REALLY want to dig into his model, here's Craig Reynolds homepage with just gobs and gobs of info on his simulation.

    red3d.com/cwr/boids

  • nevermind, thot you were trying to detect mobiles.

  • From a quick look at the code it appears that each instance of an ant runs it's own set of code to determine the pathing and searching behaviour. Because of this, I highly suspect that trying to duplicate that many ants in C3, each acting independently is going to be a challenge as the software that runs all of that doesn't have the overhead of a browser to manage as well.

  • Apparently that js isn't maintained any more. Here's a fork of the original updated as of last year. Might try it.

    github.com/shinyshoe/mosleep

  • I can also tell you this. It appears you created this in C2. I ran it as a C3 project and it didn't do it. My new guess is that this was/is a bug in C2 that got fixed in C3.

  • Well... that's rather confusing.

    If you use the ticked value in any way, it changes the font face for some reason. I even tried storing the ticked value as a global var, rounded it, converted it to int and it still changes the font face. I have honestly no idea why it's doing that. And it appears to only be doing it for the value returned by the plugin. I set the text size manually and it worked as intended.

    But I did find a workaround.

    In the line where you set the START_TEXT font size to the ticked value, add a line below it.

    -> START_TEXT: Set font face to "Arial" (normal)

  • Without seeing your actual code, it's going to be near impossible to diagnose this.

  • The easiest way to do this would be with an Ajax call to a php script on a website that saves it to a MySQL database.

    Construct really only has 2 ways of communicating outside of the client, Ajax and WebSockets. WebSockets could do the job as well but that requires creating a server. Having Ajax send that data to a website with a php script would be much, much easier. The php script could then stuff all of that data into a database or... append data to a .csv file if you wish.

  • Then the steps I outlined above should still help pinpoint the cause.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • github.com/richtr/NoSleep.js

    Now, how to incorporate that into C3???

  • Project properties > display > orientations.

    You should be able to select portrait and it shouldn't rotate any more.

  • Well, that's hard to say. The first thing I'd do is to enlist Chrome to help me find out.

    When you're previewing your project, hit f12 to bring up the developer console. At the top, click on memory. You should see several things listed under 'select javascript VM instance'. Here, you can watch your project's memory usage and chrome will show up and down arrows as it uses more or less memory. You can also confirm here how much memory it's been using.

    If you click on 'take a snapshot' chrome will look through your project and provide you a list of what is using how much memory. A lot of that is going to be difficult to decipher but what you'll be looking for is really large numbers on the right hand side under 'retained size.' If you start expanding out the tree looking at what's consuming the most memory, you may... I say may... be able to recognize some of the data in there and spot the problem.

    You can also select the performance tab at the top, click on the memory checkbox, and record your session. One of the graphs will be of memory and at the top will be screenshots of where you were in the game. If you see a huge spike in the memory, look at the screenshot to see what was happening and that may help you zero in on the problem.

    One other thing to check if you use local storage, select the application tab at the top and then select 'clear storage'. You'll see a pie chart that will tell you how much memory local storage is using.... and guess what, local storage has a huge limit (30gb on my system with 32gb ram). You can browse through the local storage tree below that. Start looking under 'IndexedDB' and look for LOTS of key/value pairs.

    I can say with little doubt that it's likely somewhere in your code and not C3. While I've been writing this, my latest project has been running in the background and it's staying at a pretty solid 42mb.