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

Author Topic: Sprite creation on Mouse Click?  (Read 1214 times)

0 Members and 1 Guest are viewing this topic.

magneonx

  • Full Member
  • ***
  • Posts: 141
    • MSN Messenger - magnumneon04@hotmail.com
    • View Profile
Sprite creation on Mouse Click?
« on: April 07, 2013, 04:12:23 pm »
Hello how to do a sprite creation on mouse click? What I am trying to do is laying out the grid for A* Algorithm so I made a grid and able to snap the walls and the tiles and such to that grid. I am stucked at making sprite on mouse click. How does SFML allow me to do this? I am using SFML 2.
Thanks

danikaze

  • Newbie
  • *
  • Posts: 38
    • View Profile
    • Email
Re: Sprite creation on Mouse Click?
« Reply #1 on: April 08, 2013, 05:27:52 am »
Just take a look to...
- this, for capturing user input
and
- this, to create sprites and display them

Anyway, if you are able to program A* algorythm, you should able to get on this easily ;)