Recent Changes

Tuesday, December 6

  1. page Collision Redundancy edited ... Collision Check: GreenBox-YellowBox (the same as YellowBox-GreenBox) Collision Check: PinkBox…
    ...
    Collision Check: GreenBox-YellowBox (the same as YellowBox-GreenBox)
    Collision Check: PinkBox-YellowBox (the same as YellowBox-PinkBox)
    Collision Check: PinkBox-PinkBox
    Collision Check: YellowBox-YellowBox
    Collision Check: GreenBox-GreenBox

    Allowing us to half the number of collision checks! For a concrete example of this kind of performance gain in action, see the attached Benchmarking Capx. Click the buttons to switch between the types of collision detection, and hold the right-mouse button down in the layout to increase the number of boxes.
    (view changes)

Tuesday, November 29

Tuesday, July 26

  1. page Set Sprite Scale edited ... shortcut for Set width to OriginalWidth * scale Set height to OriginalHeight * scale
    ...
    shortcut for
    Set width to OriginalWidth * scale
    Set height to OriginalHeight * scale
    (view changes)

Friday, May 8

  1. 2:24 pm
  2. page Home edited ... Latest Releases Construct 2 Release r200 Construct 2 Beta r204.2 Getting Started Head ov…
    ...
    Latest Releases
    Construct 2 Release r200
    Construct 2 Beta r204.2
    Getting Started
    Head over to the page tree to get a complete list of entries on the wiki!
    (view changes)
    2:24 pm

Tuesday, March 17

  1. page Home edited ... The Construct 2 Wikipedia tries to act as a repository for useful information on the internals…
    ...
    The Construct 2 Wikipedia tries to act as a repository for useful information on the internals of C2, modular code design and reusability, and design practices.
    Latest Releases
    ...
    2 Release r195
    Construct 2 Beta r199
    r200
    Getting Started
    Head over to the page tree to get a complete list of entries on the wiki!
    (view changes)
    11:05 am

Friday, March 13

  1. page Delta Time edited ... DT is system expression that stands for delta-time. It represents the change in time in second…
    ...
    DT is system expression that stands for delta-time. It represents the change in time in seconds since the last game tick.
    Is DT consistent?
    ...
    times per second,second; however, it
    ...
    of the browser/computercomputer which is
    Note: Laptops can set alternate refresh rates which can have a direct impact on the FPS of a Construct project.
    One should never have an event which runs as a factor of dt (eg: Every dt*X seconds conditional).
    (view changes)
    1:40 pm
  2. page Delta Time edited ... Is DT consistent? The underlying Construct 2 engine uses something called "requestAnimat…
    ...
    Is DT consistent?
    The underlying Construct 2 engine uses something called "requestAnimationFrame" (underlying v-sync related browser timing) to attempt to peg the game tick at approximately 60 times per second, however, it usually matches the display refresh rate of the browser/computer which is nearly always 60hz except in the case of some new 120hz monitors. This means that in most cases, dt ~= 0.0167 of a second (remember that dt is the elapsed time in seconds since the previous game tick). Obviously though, cpu intensive games and other things can cause the frame-rate to fluctuate.
    ...
    of a Construct.Construct project.
    One should never have an event which runs as a factor of dt (eg: Every dt*X seconds conditional).
    On a 120hz display, dt will average ~= 0.008, since the engine will attempt to run the game tick 120 times per second. So then, setting up an event which runs every 60*dt is going to run approximately once a second on a 60hz vsync, and once every 0.5 seconds on a 120hz vsync. Obviously not good, since the game behavior will be inconsistent depending on the hardware.
    (view changes)
    1:13 pm
  3. page Delta Time edited ... DT is system expression that stands for delta-time. It represents the change in time in second…
    ...
    DT is system expression that stands for delta-time. It represents the change in time in seconds since the last game tick.
    Is DT consistent?
    ...
    of the browser/computer(nearlybrowser/computer which is nearly always 60hz
    ...
    case of thesesome new 120hz monitors).monitors. This means
    ...
    to fluctuate.
    Note: Laptops can set alternate refresh rates which can have a direct impact on the FPS of a Construct.

    One should never have an event which runs as a factor of dt (eg: Every dt*X seconds conditional).
    On a 120hz display, dt will average ~= 0.008, since the engine will attempt to run the game tick 120 times per second. So then, setting up an event which runs every 60*dt is going to run approximately once a second on a 60hz vsync, and once every 0.5 seconds on a 120hz vsync. Obviously not good, since the game behavior will be inconsistent depending on the hardware.
    (view changes)
    1:12 pm

More