Quote Originally Posted by Loodziek
Hi again guys. In this time I know basics of using SDL, SDL_Image and SDL_TFF. But it's still only basics. So I have some questions to you:
:arrow: I know how to draw image, set it position. But how can I set an transparent color for image? You know, I mean when I have for eg. #ff00ff background color I want to set this color as Alpha.
:arrow: In Lazarus, Delphi we put Timer and we can timing. In Omega we have an OmegaTimer. But how can I set timer in JEDI-SDL?
:arrow: And more, but not everything suddenly

Thanks for any responds.

And I again sorry for my weak English, tell me where I make mistakes, I will try to don't do it in future...
*1- [pascal]
SDL_SetColorKey(surface, // surface is the surface that want to set a transparent color
SDL_RLEACCEL or SDL_SRCCOLORKEY,
SDL_MapRGB(surface.format, r, g, b)); // this color will be transparent[/pascal]


*2-
I don't know i use a few lines of code and a SDL_delay to do it, but in (VRY SLOW) pcs the game will run at diferent speed ;/


sorry me weak english too ;p
im from brazil and you ?