Not logged inGosu Forums
Forum back to libgosu.org Help Search Register Login
Up Topic Gosu / Gosu Exchange / Weird Sprite Blurring???
- By Azurazen Date 2010-06-15 20:13 Edited 2010-06-15 22:30
My animation seems to blur as I move, i was thinking that my code was creating multiple instance of the object but I cant seem to find out where?

My other theory is that by stopping the animation the way I do, it might not finifh drawing to the screen, but again im stumped to find the cause/fix for it?

Im not sure how to post the file so ill just copy the code, kinda new to using gosu and forums for that matter so bear with me...

http://pastebin.org/334470

*EDITED*

>>>Thx kyonides for the post site, and I replaced the line, yep less signs :D still blurs tho :( lol

- By kyonides Date 2010-06-15 20:57 Edited 2010-06-15 21:03
You can post it on http://pastebin.org/

You might change this line as well.

@cur_image = @cur_image_array[Gosu::milliseconds / @animation_speed % @cur_image_array.size] if @animation == true

to...

@cur_image = @cur_image_array[Gosu::milliseconds / @animation_speed % @cur_image_array.size] if @animation

...and it still works properly with less words or signs.
- By jlnr (dev) Date 2010-06-16 05:41
Azurazen, maybe it is because you increase x and y by non-integer values such as 1.2. You can try drawing at @x.to_i, @y.to_i, and see if it looks better to you.
- By Azurazen Date 2010-06-16 07:54
Your right, it seems to of fixed the blurring thx :D
- By banister Date 2010-06-16 09:30
you're*
Up Topic Gosu / Gosu Exchange / Weird Sprite Blurring???

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill