SFML community forums
Help => Graphics => Topic started by: mnajrg on November 28, 2012, 06:35:32 am
Title:
Help in moving sprite
Post by:
mnajrg
on
November 28, 2012, 06:35:32 am
How can I make a simple sprite move on the screen like a ball?
Title:
Re: Help in moving sprite
Post by:
masskiller
on
November 28, 2012, 06:46:48 am
Read this: http://en.sfml-dev.org/forums/index.php?topic=5559.0 (http://en.sfml-dev.org/forums/index.php?topic=5559.0) Please.
Your question nearly makes no sense for anyone that's not inside your head.
Title:
AW: Help in moving sprite
Post by:
eXpl0it3r
on
November 28, 2012, 09:06:37 am
To move a sprite or a shape you can use move():
sf
::
CirlceShape
ball
(
10
.
f
)
;
// ...
ball.
move
(
10
.
f
,
10
.
f
)
;
If you want some physics you need to implement it or use an existing library. ;)