Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Sprite Movement  (Read 966 times)

0 Members and 1 Guest are viewing this topic.

Meok

  • Newbie
  • *
  • Posts: 2
    • View Profile
Sprite Movement
« on: January 14, 2012, 12:40:22 pm »
Hey guys, I've been messing around with SFML for a little while now, don't consider myself any good at it or programming in general but I'll keep on trucking.

I was thinking of a way to move a sprite, with the speed increasing over time, so lets say I hold down d to make my sprite move right across the screen, it starts of slow and gradually picks up speed until the maximum limit is reached.

It may seem like a novice question but I just want to know how this would be done, is it a simple loop or a bit more complex?
SFML Newbie

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Sprite Movement
« Reply #1 on: January 14, 2012, 12:56:19 pm »
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development: