Full Screen speeding things up

This forum is currently in read-only mode.
From the Asset Store
Have you ever dreamed of playing in a Speedball game or tournament?
  • Ok the problem I seem to have is when I put it to full screen things start to speed up.

    Here's an example.

    I have a private variable for a shot timer. set to 0 at default.

    I also have a private variable called Shot Time set to 20.

    I have it so every tick add 1 to shot timer, and a separate event saying when shot timer is greater than shot time, it spawns a bullet and resets shot timer to 0.

    When on full screen it fire exponentially faster.

    Edit

    Well I set it so when increment the shot timer by 1 * TimeDelta it fixes the issue.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 1st, if this is for Construct Classic (and not C2), it should be moved into Help.

    Secondly, I would recommend using the clamp(a,b,c) system function for timers instead, as it is much more reliable.

    have a private variable "timer"

    "timer" greater than 0

    set "timer" to Clamp("timer" - 100 * TimeDelta, 0, 500)

    [

    [The "500" corresponding with 5 seconds, 300 with 3, etc. I've been told that having things in multiples of 100 is easier and better in the long run, as calculations with values less than 100s can be buggy.]]

    "timer" = 0

    sprite : create bullet

    sprite : set "timer" to [insert number here]

  • Thanks I will give that a try.

    Thank you also for telling me where to post.

    I just clicked on construct classic discussion, and figured the page was for construct classic.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)