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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Meok

Pages: [1]
1
Graphics / GetSize() [SOLVED]
« on: February 05, 2012, 05:48:15 am »
Hey guys!

I went to search for this but couldn't find anything related.

Since there is no longer any GetSize() function for sprites, how do you go about calculating sprite widths etc...?

I understand there is a texture get width function but for the sprite itself?


Thank you :)

edit: found it here xD http://www.sfml-dev.org/forum/viewtopic.php?p=44241&sid=b71748deeb4d3d9175fdf7911320d737

2
Graphics / Sprite Movement
« on: January 14, 2012, 12:40:22 pm »
Hey guys, I've been messing around with SFML for a little while now, don't consider myself any good at it or programming in general but I'll keep on trucking.

I was thinking of a way to move a sprite, with the speed increasing over time, so lets say I hold down d to make my sprite move right across the screen, it starts of slow and gradually picks up speed until the maximum limit is reached.

It may seem like a novice question but I just want to know how this would be done, is it a simple loop or a bit more complex?

Pages: [1]
anything