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

Author Topic: MousePosition  (Read 1280 times)

0 Members and 1 Guest are viewing this topic.

GSG3D

  • Newbie
  • *
  • Posts: 1
    • View Profile
MousePosition
« on: March 10, 2012, 08:21:27 am »
As I do so when the mouse pointer when in a specified coordinate (x, y)  or when the pointer touches a sprite,run a action?

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6286
  • Thor Developer
    • View Profile
    • Bromeon
MousePosition
« Reply #1 on: March 10, 2012, 09:51:57 am »
Assuming SFML 2, the functions sf::Mouse::GetPosition() and sf::Sprite::GetGlobalBounds() might help you, take a look at their documentation.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development: