Sprite rotation using system time?

  • I have a question

    I need to rotate a sprite 360 degr synced to the system time.

    But i want to move it according to milliseconds.

    So the sprite will move smoothly and takes 24 hours to rotate "Realtime".

    I tried some things with the system date and time plugin, but i have not been able to figure it out.

    Allready searched through the forum, but cant find anything this specific.

    Any pointer?

    Would be great.

    Kind Regards.

    Savvy001

  • Sprite: Set angle to self.Angle + dt*360/(24*60*60)

    should rotate the sprite a 360� per 24hours

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanx Yann but i think that dt would not be enough to set it in sync with the system time.

    I could be wrong about that, so please correct me if so, then i could learn.

    I kept trying the past few hours and i finaly figured it out.

    Check the screen if u like.

    <img src="http://www.conceptsarea.com/Scirra/RealtimeClock.png" border="0" />

    Thanx for the help!

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