That1Birb's Recent Forum Activity

  • > to add timers like this to things i usually use a variable and then have an event that sets to variable to the time you want and an event that continuously removes time from that variable.

    >

    > for example: You make an instance variable on you player called "boosting"

    >

    > then for example

    >

    > When shift key pressed - set "boosting" to 0.5 (this gives you the amount of time you are after)

    >

    > then you link the action you are seeking to that variable being greater than 0. e.g.

    >

    > If player.boosting > 0 - set max speed to 100(or whatever u want)

    >

    > Inside this event you have a sub event that handles the countdown of the variable

    >

    > so sub event: -- every 0.1sec subtract 0.1 from player.boosting

    >

    > then finally you have an event that resets the action to normal when the counter has run down

    >

    > If player.boosting =<0 - set max speed to 50(or standard speed)

    >

    > Here is an example that i did for someone else of the same technique, that means that for 5 seconds after a player has overlapped the blood pool, they will produce bloody footsteps while moving. Same method.

    >

    > 1drv.ms/u/s!AkmrWgxeuxlKhIcKKuFgyNMlgcROYw

    And also to add to this, you can also use the Timer behavior. When you dash, set timer with the tag "dash" and duration of the dash.

    If "dash" timer is running, set speed to dash speed.

    if "dash" timer NOT running, set speed to lerp() back to normal speed.

    You can also add that only if the "dash" timer is NOT running, you can hit "shift" to dash.

    I have this working but I'm wondering if there is a way to slow the deceleration by the lerp down.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'm pretty new to Construct and I'm trying to figure out how I make a very short timer. I have a dashing function almost working, it increases max speed by 10 times when shift is pressed and sets vector x to that speed but I want this to last about half a second or so before not working again for a second or so.

    My main problem here is the time of the dash I can get the cooldown and everything working but I want to delay and make simply pressing shift boost you forward really quickly and then lower your max speed back down to normal and I'm having issues doing this

    Tagged:

That1Birb's avatar

That1Birb

Member since 19 Sep, 2020

None one is following That1Birb yet!

Trophy Case

  • 4-Year Club
  • Email Verified

Progress

5/44
How to earn trophies