PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

blitting a surface... help!

Imagine: I have a surface and I want to blit it to screen using coordinates -x= - 50, y = 0 (I want to move it then into screen). The surface is not blitted until it is entirely in the screen. Any solutions?
Imagine: I have a surface and I want to blit it to screen using coordinates -x= - 50, y = 0 (I want to move it then into screen). The surface is not blitted until it is entirely in the screen. Any solutions?

Imagine the size of your surface is WIDTH x HEIGHT

Create a rectangle of size (w,HEIGHT)
then blit your surface from coordinate (WIDTH-w,0) and the size of the rectangle to the screen.

grew w from 0 to WIDTH, one by one, and that will be ok...

jul'