I'm very new to Delphi and still learning.
I have a procedure which will take an image as an input and will make the image to move down to certain pixels using loop, during this process I would like to show the images. I have tried to use "Timer.Interval" method to show the image in between intervals but I'm sure I'm doing things wrong. Is there a way of handling this? If not, I'm open to any other suggestions on how I could simultaneously show image while doing some iteration.
Thanks in advance.
procedure BlockSpawn(var Image1: TImage; var Timer1: TTimer);
begin
Timer1.Enabled := True;
WITH Image1 do begin
repeat
Timer1.Interval := 600;
Top := Top + 66;
Image1.Show;
until (Top = (TForm1.Bottom - Height)); {repeat}
end; {WITH}
end; {begin}
The reason behind this is that I would need to run this procedure multiple times in every iteration, and would need user to see the image being simultaneously shown to them. Like in Tetris how the new block will always move down from the same position and keeps on repeating until certain event occurs.