John Cutter's Recent Forum Activity

  • <sigh>

  • Some more tests...

    Here are the specs for my work laptop:

    ASUS running Windows 10 (64 bit)

    Intel I7 2.6 GHz (8 CPUs)

    DirectX 12

    GeForce GTX 970M

    I have two external monitors, a Dell and a Lenovo. I ran some tests using my laptop monitor as my "main" screen, and more tests after making my Dell monitor my "main".

    LAPTOP MONITOR IS "MAIN"

    LAPTOP MONITOR

    The demo runs like butter. The vehicle and the background are perfectly smooth. No microlags or jerkiness at all.

    SECONDARY AND TERTIARY MONITORS

    The vehicle and the background show pronounced jerking and lag.

    SECONDARY MONITOR IS "MAIN"

    LAPTOP MONITOR

    The vehicle and shadow look perfect but the background has some slight jerkiness. It is MUCH better than the jerkiness mentioned above.

    SECONDARY AND TERTIARY MONITORS

    The vehicle looks perfect, but the background looks a little blurry? (As if it was being rendered in a location and then a millisecond later rendered one pixel to the left or right.) Despite any possible blurriness it still looks great.

    It will be interesting to see if the new C3 runtime makes this better!

  • Thanks for the help. Here's a link to my capx (below). I'm probably doing something stupid and will soon feel like an idiot... <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":-)" title="Smile">

    https://nofile.io/f/mfgADZQW2qv/array_test.capx

  • I just tried the HTML5 version in the link above (http://q3olegkagames.com/project/test/).

    As others have said, the performance is very jittery and jerky. Strangely, when I dragged the browser window from my secondary monitor to the monitor on my *laptop*, the movement instantly became buttery smooth! (I can make a video if anyone would find that helpful...)

    UPDATE: I just tried the same experiment on my laptop at home. I've got a fairly fast rig but unfortunately I'm seeing the same jerkiness on my secondary monitor AND my laptop monitor.

  • On my lunch break today I created a .json file and tried to use AJAX to populate an array. It's not working and for the life of me I can't figure out why.

    Here's what I'm doing:

    1. I created a .json file using c2array format. (See below.)

    2. I imported the .json file to the Files area.

    3. On Start of Layout I use AJAX to request the file.

    4. When the .json file is Completed I Load (into the Array) from JSON string "AJAX.LastData"

    When I run in debug mode I can see the .json text in LastData, but my array has 10 values and they are all 0.

    A minute ago, as a test, I downloaded the array to a .json file, added that to my project files, tweaked a couple of values and tried again. That's not working either, for some reason. Is it an encoding issue on the text file? According to Notepad++ I'm using UTF-8.

    -------------------------------------

    {
    	"c2array": true,
    	"size": [100, 1, 1],
    	"data": [
    		[
    			[0]
    		],
    		[
    			[1]
    		],
    		[
    			[2]
    		],
    
    etc.
    
    		[
    			[100]
    		]
    	]
    }
    [/code:1voymjgm]
  • Hmm. I followed blackhornet's advice above, but it's not spawning the correct number of sprites in my grid.

    My code now looks like this:

    For "MakeItems" = 1 to 5
         Pick an instance of spr_test at random (if spr_test.var = 0) --> set spr_test.var to a random number between 1 and 3
               spr_test.var = 1 --> create newSprite1 at location of spr_test --> delete spr_test
               spr_test.var = 2 --> create newSprite2 at location of spr_test --> delete spr_test
               spr_test.var = 3 --> create newSprite3 at location of spr_test --> delete spr_test
    [/code:9v6lliz9]
    
    So if it randomly picks an instance of spr_test where var = 0 then it sets var to a random number between 1 and 3. But if it randomly picks an instance where var does NOT equal 0 does it just fall through and loop back? That would explain why I'm not always getting 5 items in my grid.
    
    UPDATE: I may have fixed the problem by moving "if spr_test.var =0" ABOVE "Pick a random instance".
  • Awesome replies. Thanks, guys!

  • I have a bug in my prototype and I'm trying to track it down. Here's my "code" in nutshell:

    First, I fill the empty cells in a grid with instances of "spr_test". This seems to work fine. Then I call a function that does the following:

    For "MakeItems" = 1 to 3
         Pick an instance of spr_test at random --> set spr_test.var to a random number between 1 and 3
               spr_test.var = 1 --> create newSprite1 at location of spr_test --> delete spr_test
               spr_test.var = 2 --> create newSprite2 at location of spr_test --> delete spr_test
               spr_test.var = 3 --> create newSprite3 at location of spr_test --> delete spr_test[/code:295myv0b]
    
    Everything about this works great, except it sometimes puts two newSprites on top of each other. I'm guessing that the MakeItems loop happens all three times and THEN it deletes the instances of spr_test. Is that right?
  • <<When it fails to load, are there any error messages? Any messages in the windows logs?>>

    C2 doesn't give me any errors. It just loads forever. I can click on the red "X" and that is generating "application hang" errors in my Windows log. But I'm not seeing any useful information in there.

    <<How big is your project? Have you got thousands of images?>>

    The project is fairly small. 45 events. 20 sprites (with only a few animation frames in some of them). My "frame" image is 1280 x 780 but it seems to work fine at home on a lesser computer.

    <<Have you got lots of Layouts / Event sheets open at the same time?>>

    Nope, only two layouts and one event sheet.

    <<Under 'File/Preferences/ Misc/Other' have you changed the 'icon' mode?>>

    I've never touched that. Is there something in there I *should* change?

    <<Final suggestion - let users here try to load your project and report back to you.>>

    My project loads just fine in Construct 3, so I don't think the issue is there. I'll try loading some other projects and see if those have problems as well.

    Thanks a lot for your help!

  • Version 7 of my project loaded earlier today, after a couple of tries, so on a whim I tried to load version 7 and THEN version 8. For whatever reason, this worked. So I'm back in business for now.

    I'll try re-installing C2 and I'll check with the IT guys to see what kind of software is running in the background on this computer.

    Thanks for the reply.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I didn't put this in the bug forum because I think it's an issue with my work computer, or some software that is running in the background. I've been working on a game prototype using Construct 2 and I've been having issues reliably loading my project files:

    1. The .capx only opens about 1/3 of the time. The other times it just loads forever and then says "Not Responding". I exit and try again until it finally loads.

    2. Unfortunately, version 8 of my project -- which has all my work from yesterday -- won't load at all in Construct 2. (Though it loaded and ran perfectly when I tried to launch it in Construct 3, the trial version.)

    3. I am using a .capx file. I tried unzipping the files and running the .caproj but that didn't work either.

    4. On a possibly related note, I have a pretty beefy computer here at work but C2 is slow to load. When I click the icon in the task bar (Windows 10) nothing happens for four or five seconds and then the editor pops up. At home the load is almost instant. That, again, tells me that there might be some software validating the .exe or something...

    Has anyone else reported loading issues like this? Anti-virus software incompatibility maybe? Does anyone have any suggestions? I have work to do and I'm stymied.

    Thanks.

  • Easter was several months ago, but I this year I made a new Egg Hunt for my daughter! I didn't want to use our old house again, so I set this year's hunt in Autumn's favorite place on earth: Disneyland!

    I was able to use most of my code from last year's game, and I found photos and YouTube videos for the backgrounds and audio. Took me a [long] day to finish it, with a few hours the next day to fix some bugs.

    HOW TO PLAY:

      1. Find the five hidden eggs in each scene to automatically progress. 2. You can zoom in with the mouse wheel, and click and drag to move the scene. (This game won't work on phones/pads.)

    DISCLAIMER:

    I wanted the game to be challenging, but I inadvertently made it way too hard. Some of the eggs are nearly invisible...

    Here's the link, if any of you are interested: http://cuttergames.com/egghunt2a/

John Cutter's avatar

John Cutter

Member since 11 Dec, 2015

None one is following John Cutter yet!

Connect with John Cutter