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?

P#117172 2022-09-10 22:41 ( Edited 2022-09-10 22:44)

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.

P#117174 2022-09-10 22:56

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

P#117220 2022-09-11 21:40

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

P#117235 2022-09-11 23:02

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2023-02-01 11:39:29 | 0.008s | Q:20