Sorry to be asking so many questions about Gosu. I hope this isn't bothering anyone ( if it is, tell me and I'll stop ).
I wrote a small app ( I'm trying to write a game ). I've uploaded the source and the sprites I'm using at
http://www.mediafire.com/download.php?mzjnbjimztn . Here are my questions:
- in order to make the character not move that fast I made update check for a number of milliseconds before changing the image shown on the screen ( I don't know if this is the way it's supposed to be done). The movement now doesn't seem very smooth. Is there another way of achieving this ?
- when moving left, I want to use the same sprites as the ones from moving right so I'm using the @image.draw(x,y,0,-1) call. The thing is, this isn't drawing the image at the same spot, even though the coordinates seem to be the same ones as when drawing the image to the right. I don't know how I could make this right, any suggestions?
I commented the code to the best of my ability, so I think it should be pretty easy to understand ( if anyone should take the time to read it ) . It's about 100 lines long.
I'm curious about how I could go and fix those bugs, so I'll eagerly wait your reply.
Thanks!