R0J0hound's Forum Posts

  • fm4fanAT

    Late reply, but I've found a solution to this in another topic. The is the system action: "set minimum framerate". By default it is 30 which means dt will be limited to 1/30. You can set this to 0 if you so desire and dt won't be limited. It's a trade off though. When dt isn't limited you can have issue of fast moving objects passing right past obstacles without hitting them.

  • Here's one solution:

    It basically just moves separate units away from each other if they get too close.

    Another idea floating around the forum is to use the physics behavior on the units so they push each other. For best results there you'd want to move the objects using the physics behavior instead of letting the pathfinding behavior do it.

  • It's hard to ignore the size when it's 1Gb. Even 20Mb is big by my standards and I typically won't download it.

    Maybe make a copy of your project and remove all the audio and video files from it and upload that?

  • If you only need four pointed polygons then my paster plugin can do it too, and will be faster with webgl on.

  • andreone

    The issue is you're checking if a x position is exactly somewhere. With floating point numbers two separate values are seldom equal. It's better to check for a range of values like:

    pick family where family.x > position+49

    pick family where family.x < position+50

  • Yeah, only the object you're dragging is being picked. This happens even if you don't use families. You could add a "pick all" condition to the beginning of the sub-event as one way to do what you want.

  • What stuff breaks? I've only seen third party plugins cause minifying to break things. If it's an official plugin that breaks, wouldn't fixing that directly be better?

  • That bug referenced broke the code when it was minified. C2's runtime does not break when it's minified, so there is no issue.

  • It doesn't use that amount of memory for me. The editor with that capx only takes up 150 Mb on my machine according to the task manager. My system was new in 2007. The editor only takes 74 Mb with a blank capx.

    r227 32bit

    Windows Vista sp2 32bit

    cpu: amd turion 64 x2, 1.9 ghz

    graphics: ati radeon x1200

    4 Gb shared memory

  • You need to add the sine behavior to that object first.

  • Yura G

    Look at the system action "set minimum framerate". It's by default 30, so that would explain those dt values. I had forgotten about that.

  • The newly created objects are not pickable outside of sub-events till the next toplevel event.

    More info here:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yura G

    I was thinking about this and it is because the browser is synchronizing with the refresh rate almost perfectly. That gives smooth animation and motion.

    I don't think wallclocktime would help in this situation. What you can do is compare the time elapsed with the number of frames to get the current average fps. Actually fps is just frames/seconds, so you could add up the dt for the last 10 frames and do 10/sum_dt to get a per tick fps.

    https://dl.dropboxusercontent.com/u/542 ... e_fps.capx

  • briggybros

    I guess that means you can't access those other buttons from javascript at this time. The spec as you linked mentions it as a possible feature, but I guess none of the browsers check more than the first three.

  • Sounds like a bug to report. It shouldn't crash.