How do I speed up rotation angle for X seconds

0 favourites
  • 5 posts
From the Asset Store
This is a Dungeon Master tool & the 1st of 12 Combat Engines from the Building Combat Engines for Browser Games workshop
  • Hey guys

    i have a circle that is spinning with the following event:

    » System | Every tick | "Sprite" angle to self.Angle + 60*dt degrees

    What i want is to speed up that rotation every 15 second for about 5 seconds and than back to normal speed.

    I tried around with a few methods but i don't get it

    Maybe someone can help me

    Thank you buddys

  • I would use the rotate- and the timer-behavior for your circle.

    System| Every 15 seconds -> Sprite| Set Rotate speed to 'fast' degrees per second
                             -> Sprite| Start Timer "SlowDown" for 5.0(Once)
    
    Sprite| On Timer "SlowDown" -> Sprite| Set Rotate speed to 'normal' degrees per second
    [/code:26gcq14q]       
    normal and fast are your values.
  • Thanks but is the rotation behavior not to overpowered? I want to develope a mobile game and want to save memory

    But i give it a try then i see what happens to the performance.

    Thank you

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • [quote:2fplv57l]Thanks but is the rotation behavior not to overpowered?

    I don't think that it will have an effect of memory or performance. First, that are only a few bytes, second, I hope that developer of Construct knows best to make something like that most efficient.

  • Yeah thats right

    I tested your lines of code an it works perfect for me! Thank you buddy

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