Log In  


Cart #gayebekewu-0 | 2022-09-10 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA


i was making a movement test to test out but the sprite smears how do i fix it?



1

Oh, that's not hard to fix, you just need to use cls() every frame before you draw stuff, not only in the init function.


Yeah, a typical draw() function will call cls() before drawing anything to the screen.


If you want a specific color/colour then you pass in one argument to cls(), such as cls(11) to draw a blue background.



[Please log in to post a comment]