John Cutter's Recent Forum Activity

  • Thanks for the reply, Ashley! I really appreciate Scirra's customer support. :-)

    I use Chrome so I checked out 'chrome://gpu' and discovered that my hardware acceleration was disabled, for some reason. I went into my Chrome settings and turned it on, and now everything is working as expected. Thanks for your help!

    (Actually, I'm now getting the same framerate and performance with the C3 runtime, but I noticed that my CPU usage has gone down a LOT, compared to C2.)

  • I wouldn't mind taking a look at it if you want don't mind sending the capx but if not I can only suggest maybe change the max texture size in project settings?

    Btw, I played it and I thought I was going to try one level but ended up finishing it chickka rakka chikka boom

    Because of the music and large image files my .capx is HUGE. But thanks for the offer. If I can't figure out what's going on I may take you up on it. :-)

    You finished it??? I'm kind of surprised (and impressed) because I tend to make some of the eggs way too difficult (as in practically impossible) to find. Gonna be better about that with this year's version. Heh.

  • It seems to be running fine here. Construct provides tools for you to check performance and investigate why things are slow if you run the debugger and look at the profile tabs. That's the first place to go.

    To be clear, the version I linked was using the C2 runtime.

    When I load that program and choose the C2 runtime, it takes 12.89 seconds for my text message to scroll up the screen and the next scene to fade in. If I then choose the C3 runtime, the same sequence takes 56.25 seconds. So I'm clearly doing *something* wrong.

    Okay, I just checked the debugger with both the C2 runtime and the C3 runtime. I'm not an expert but everything *seems* okay, except I did notice a big difference in CPU usage. During the text scroll:

    C2 RUNTIME: 60 fps and 92% CPU

    C3 RUNTIME: 26 fps and 1.8% CPU

  • For the past three years I have been making my daughter an egg hunt game for Easter. I just loaded last year's game, made with the C2 runtime, into Construct 3 and everything is moving like molasses. Any ideas what could be causing this slowdown?

    My game consists of 10 scenes (each 1920x1080) and a dozen or so fairly large egg sprites. I am also fading the images to black using a large black sprite that covers the screen. Is it the large images?

    NOTE: I was able to switch to the C2 runtime and it's pretty much back to normal, but I was looking forward to a slight framerate improvement from C3... definitely not getting that.

    Here is last year's version, using the C2 runtime: cuttergames.com/egghunt_2018

  • I'm pretty familiar with Construct, and I'm an owner of Construct 3. I have not, however, tried to do anything with the multiplayer object.

    With that in mind, how difficult would it be for me to create a multiplayer quiz game for my office? I'm fully confident that I can make a quiz game, but I want to allow up to 30 people to connect to it and compete against each other, in realtime.

    PLAYER EXAMPLE:

    As a player, I go to a website link with my iPhone and am prompted to enter my name. A second or so later my name appears on the Quiz Screen. (In this case, on a large monitor in a conference room.)

    When the Quiz Creator clicks the READY button a question and four answers appear on the Quiz Screen. A moment later they appear on my iPhone and I choose one of the answers. (I have 20 seconds to pick.)

    After the timer runs out, or all answers are in, the correct answer appears on the Quiz Screen, along with the number of people who got the question right and wrong.

    And so on. Is this a moderately difficult endeavor, or a hugely complicated rip-my-hair-out kind of project. :-) (I've looked at the example "chat" app, and it doesn't look *too* bad...)

  • I did a quick Google search to see if this had already been suggested somewhere but didn't find anything...

    The game flow of my current project has gotten a bit complicated as I transition from my puzzle, to a scoring popup, and then on to the next puzzle. I was having strange issues and to help me find the problem I came up with the following idea:

    1. I added an array to my layout and called it "array_debug".

    2. Then I created an event that PUSHED a string value to my new array.

    3. I pasted this event in each of my main code Groups, and in each Function that wasn't part of a loop. (Then I changed the value I was pushing to represent the Group or Function name.)

    4. When I run my game in Debug Mode I can then look at array_debug to follow my event flow.

    What I EXPECTED to see was something like this:

    Initialize Group

    Setup Group

    Create Sprites Function

    Game Group

    Scoreboard Group

    Final Score Group

    What I ACTUALLY saw was this:

    Initialize Group

    Setup Group

    Create Sprites Function

    Game Group

    Scoreboard Group

    Scoreboard Group

    Scoreboard Group

    Scoreboard Group

    Scoreboard Group

    Scoreboard Group

    Scoreboard Group

    Scoreboard Group

    Scoreboard Group

    Scoreboard Group

    Scoreboard Group

    ...

    My scoreboard group was supposed to execute once and then exit, but I forgot to deactivate the group so it was running over and over again. Now I'm paranoid about other places where I'm looping through unnecessary code that might be slowing my game down. This trick should help me find those sorts of problems.

    EDIT: This trick can also be done by logging events to the browser console, but to be honest I haven't looked into how to do that.

  • [quote:319mkdi1]But i'm still confused as the array isn't showing as an object I can use for events.

    To add to what blackhornet wrote... In order to use many of the built-in features of Construct (like arrays) you have to first add them to your project. So go to your layout, right click, select "Insert New Object", and then pick Array. Now it will be available to events and actions.

    The next thing you will want to do is add an action for your AJAX event (On "shop" completed). Array --> Load --> AJAX.LastData.

    To make sure that everything worked, run your game using "Debug Layout" (instead of the triangular Preview button) and then click on your array on the left side of the debug panel. You should be able to see your data listed.

  • A tag is just a name you can assign to help Construct identify things. It's almost like a variable name, which means it can be anything you like.

    For example, when you use AJAX to "request" a project file you can add a tag like: "zebra_yoghurt". Then your next line would be:

    AJAX --> On "zebra_yoghurt" completed -- Dictionary --> Load from JSON string AJAX.LastData

    Another place where I use tags is with audio. When you play a music file, for example, you can assign it an optional tag. Again, it can be any name you want. By giving it a tag you can then do things like check to see if music with that tag is playing.

  • For a bit more help, check out my recent thread here:

    Here's a quick overview:

    1. Right click on Files and select New --> Dictionary

    2. Edit your dictionary with keys and values (do NOT include quotes for text)

    3. Add AJAX to your project

    4. One of your first events should use AJAX to Request a Project File

    5. When it's loaded (AJAX "On [tag] Completed") then the Action for your Dictionary object should be "Load"

    6. You can then load AJAX.LastData into your Dictionary

    7. Now you can use keys to retrieve information from your dictionary

    8. If you created an array then you can do things like: Array.At(index) or Array Contains Value "Text"

  • Your project should work fine in Construct 3. In fact you can probably try it with the free version. (Just click on the Construct 3 link above.)

    That said, if you SAVE your project using Construct 3 you will no longer be able to load it in Construct 2. At least, this is my understanding.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • [quote:1blze4vj]If this is for C3, why post in the C2 section?

    Yeah, sorry about that. I initially posted in the C2 section because more people seem to read that section. When I realized my problem was specific to C3 I posted again there, then found out it was too late for me to delete this thread. Can you do that for me? Thanks!

  • Update: blackhornet provided the solution to my problem! When I entered the data in the JSON file (using Construct 3 I was able to type values into a table) I was using quotation marks for strings. Apparently, this isn't necessary. When I removed them everything worked correctly.

    In case anyone else runs into this issue in the future I made a quick illustration:

John Cutter's avatar

John Cutter

Member since 11 Dec, 2015

None one is following John Cutter yet!

Connect with John Cutter