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

Author Topic: sprite movement help  (Read 1233 times)

0 Members and 1 Guest are viewing this topic.

lukaius

  • Guest
sprite movement help
« on: November 03, 2017, 07:18:40 pm »
Okay i am making an rpg with sfml only, I need advice from pros
So here is my question: What would be the best way to get a sprite to move out of these
Using the mouse by getting the mouse's x/y saving separately into variables then using it in
sprite.move(x,y)
where x,y are the variables. Or using the key board.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: sprite movement help
« Reply #1 on: November 04, 2017, 09:03:25 am »
Using mouse or keyboard to move characters is not a technical decision, it's really up to what you want for your game. What exactly do you expect from us?
Laurent Gomila - SFML developer

lukaius

  • Guest
Re: sprite movement help
« Reply #2 on: November 14, 2017, 03:16:23 pm »
I want to know will that work to move a sprite