How draw something every 5sec for 2sec {so 3 sec interval}
im using sdl so i have acess to SDL_getticks that is similar to gettickcount
any ideia how to do that ?
How draw something every 5sec for 2sec {so 3 sec interval}
im using sdl so i have acess to SDL_getticks that is similar to gettickcount
any ideia how to do that ?
From brazil (:
Pascal pownz!
Presumably you have a timer that fire up sometimes? Well why not make a simple object that include a variable
Show : boolean
Switch : longint
Show := false;
switch := TimeGetTime+ 3000;
in you loop
[pascal]if TimeGetTime > switch then
begin
Show := not Show ;
if not show then switch := TimeGetTime+ 2000
else switch := TimeGetTime+ 3000;
end;[/pascal]
The views expressed on this programme are bloody good ones. - Fred Dagg
thx it work
From brazil (:
Pascal pownz!
Bookmarks