Can anyone help me by explaining how to do these two simple things?
Repeat a procedure for an amount of times.
Check the colour of a specific pixel. If false redo procedure but if true move onto next procedure.
Can anyone help me by explaining how to do these two simple things?
Repeat a procedure for an amount of times.
Check the colour of a specific pixel. If false redo procedure but if true move onto next procedure.
Simba Code:Procedure LoopIt;
Var
i: Integer;
begin
for i := 0 to 100 do //Start at 0 and loop anything 100 times
begin
Writeln('Loop number '+IntToStr(i));
//Whatever else
end;
end;
Current projects:
[ AeroGuardians (GotR minigame), Motherlode Miner, Blast furnace ]
"I won't fall in your gravity. Open your eyes,
you're the Earth and I'm the sky..."
Also:
Simba Code:if(GetColor(x, y) = colour) then
... // If the colour is found, do this.
else
... // otherwise do this.
![]()
You may contact me with any concerns you have.
Are you a victim of harassment? Please notify me or any other staff member.
| SRL Community Rules | SRL Live Help & Chat | Setting up Simba | F.A.Q's |
There are currently 1 users browsing this thread. (0 members and 1 guests)