whoops!
Wasn''t supposed to be anonymous!
Kári.
[Sprites] One thread per sprite ?
Ok I think it''s the reason, just flipping, nothing drawn in it but...
I have put a SDL_GetKeyState and if LEFT: x--;
DrawScene()
{
locksurface
putpixel(x,y);
unlock
}
and even if I don''t release the left key, the pixel is moving but I still have a blinking screen (black to my image, I mean I can see that the screen is all black and my image are on it after, that''s why it blinks: black then image...)
Do you see for the left moves... ?
I have put a SDL_GetKeyState and if LEFT: x--;
DrawScene()
{
locksurface
putpixel(x,y);
unlock
}
and even if I don''t release the left key, the pixel is moving but I still have a blinking screen (black to my image, I mean I can see that the screen is all black and my image are on it after, that''s why it blinks: black then image...)
Do you see for the left moves... ?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement