1
General / Re: Making SFML smoother and more accurate
« on: June 18, 2013, 04:06:06 pm »
Don't forget to initialize variables and don't put your movement inside the event while loop
int Myx;
int Myy;
etc.
You know there's a great little tutorial that might give you a huge insight into this sort of thing. It's outdated and you could code a much cleaner version of it, but try it out:
http://www.dreamincode.net/forums/topic/230524-c-tile-engine-from-scratch-part-1/
It'll give you more of a general insight into the use of sfml for tiled games (but you could modify it to suit your needs) but remember it's outdated. 1.6 instead of 2.0 (I've posted fixed version of some of his work in the comments - for part 2 and 3 I think.
int Myx;
int Myy;
etc.
You know there's a great little tutorial that might give you a huge insight into this sort of thing. It's outdated and you could code a much cleaner version of it, but try it out:
http://www.dreamincode.net/forums/topic/230524-c-tile-engine-from-scratch-part-1/
It'll give you more of a general insight into the use of sfml for tiled games (but you could modify it to suit your needs) but remember it's outdated. 1.6 instead of 2.0 (I've posted fixed version of some of his work in the comments - for part 2 and 3 I think.