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

Author Topic: Anchor a sprite  (Read 1441 times)

0 Members and 1 Guest are viewing this topic.

bucknasty189

  • Newbie
  • *
  • Posts: 23
    • View Profile
Anchor a sprite
« on: May 02, 2011, 12:40:49 pm »
I have a button class for my GUI that is basically just a sprite with a bounding rect. Right now I just have it moving with the camera, but I was wondering if anyone knows of any other methods of keeping a sprite anchored (e.g. at the bottom of the screen) while the camera moves around.
Knowledge Speaks,
Wisdom Listens
                       -JH

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6286
  • Thor Developer
    • View Profile
    • Bromeon
Anchor a sprite
« Reply #1 on: May 02, 2011, 06:13:15 pm »
Use different views, one for the scene and one for the user interface.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

bucknasty189

  • Newbie
  • *
  • Posts: 23
    • View Profile
Anchor a sprite
« Reply #2 on: May 03, 2011, 03:34:44 am »
thank you
Knowledge Speaks,
Wisdom Listens
                       -JH

 

anything