megatronx's Recent Forum Activity

  • Same as

    In addition. Sometimes (but very very rarely) after 10-15 seconds games can freeze for about 2-4 seconds. After that all back to normal and no more freezing occurs for rest of the game.

    Yes, I should specify that too. First freeze lasts for some time, in my case it varied between few seconds to even several minutes. After that it might or might not happen again, and if it happens again the duration varies too.

  • I don't have any examples, but all you need to do is to make a cube that does something, like sin movement, and let the exported game run, and observe. I started having freezing issues about 20 mins in to it.

  • megatronx - yeah, I tried stuffing about with the timing since then, wait X, wait for signal, etc. and haven't managed to change things.

    Colludium - Yep, happens in all browsers, on html5 export and node webkit preview. Also just tried your advice and cleared cache to no avail. I have it setup so when the marker has a boolean of 'notSet' to true, it will create all that stuff and the set the boolean to false. So, it should definitely be triggering (and it is on debug).

    Well thanks guys, but I'm really at a loss now and will just have to try re-writing it in a different way I guess. Let's hope the new version will go a bit smoother.

    No, don't use wait. Wait in events that only run for one tick like on start and functions don't work. Use variable.

  • As you said, it might be some loader issue.

    I had some issues before, and now I usually tend to run some events after the layout start, and for some more heavy ones I split them in to stages controlled by a variable, in case there would be some bug that would trigger some events ahead of the time. Once that's done, I'll just fade out a layer above the actual game layers, with some background set.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yes.

    Thanks!

  • The result of a boolean comparison is either True or False, which is the equivalent of 1 or 0.

    Ah, I get it now! Awesome! Thanks guys!

    So "(Objects.Type = "Doors" | Objects.Type = "Chest" | Objects.Type = "Gate" ) equal to 1" will work right?

  • Compare two values:

    varX="A" | varX="B" | varX="C"

    Equal to

    1

    Pretty sure you're right, but I don't understand the logic behind it! >.> Basically I want to compare if instance's object variable is either = string A, string B, or string C etc. How this would work with 1?

  • Hey, thanks for quick reply. So which condition I can use for that? I want to compare instance's variable.

  • Hi,

    I must have some amnesia or something, but I forgot if i can use OR ( "|" right? ) in condition comparing a variable, like varX = "A" | "B" | "C", and will that work?

    Thanks! XD

  • Apparently skewing image is not possible in html5 canvas.

  • > PaulloAmaral Ok, I recently discovered that if i changed all my "on every tick event" to "every 0.01 seconds" instead. The performance of the game was greatly and I mean GREATLY improved on all my mobile devices. Try to use as high number as you can. So if you can use on every 0.1 seconds instead then do that.

    >

    Are you sure you meant every 0.01 seconds? Every 0.01 seconds should basically run the same as every tick at 60 fps.

    I think that would be 0.001 sec

megatronx's avatar

megatronx

Member since 25 Sep, 2008

Twitter
megatronx has 1 followers

Connect with megatronx

Trophy Case

  • 16-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

23/44
How to earn trophies