Re: ABGTE2 confusion
- Posted by ck lester <cklester at YAHOO.COM> Aug 31, 2000
- 622 views
------=_NextPart_000_0011_01C01344.D40B7B40 charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Some quickie responses: for iy =3D 234 to 266 do --What is iy and ix? They = haven't been declared.* Loop counters don't have to be declared... for ix =3D 200 to 300 do if get_pixel({ix, iy}) =3D 5 then --* pixel(15,{ix, iy}) --* <-- Here's = where the ball gets drawn end if end for end for for iy =3D 267 to 300 do for ix =3D 200 to 300 do if get_pixel({ix, iy}) =3D 5 then pixel(9,{ix, iy}) end if end for end for ball =3D save_image({193,193},{308,308}) -- Where was = it that the picture of ball was created? ------=_NextPart_000_0011_01C01344.D40B7B40 charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META content=3D"text/html; charset=3Diso-8859-1" = http-equiv=3DContent-Type> <META content=3D"MSHTML 5.00.2722.2800" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT size=3D2>Some quickie responses:</FONT></DIV> <BLOCKQUOTE=20 style=3D"BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: = 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px"> <DIV><FONT face=3DArial size=3D2> for iy =3D = 234 to 266=20 do --What is = iy and=20 ix? They haven't been declared.*</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT size=3D2><STRONG>Loop counters don't have to be=20 declared...</STRONG></FONT></DIV> <DIV><FONT face=3DArial=20 size=3D2><BR> = for ix =3D 200=20 to 300=20 = nbsp; =20 if get_pixel({ix, iy}) =3D 5 then =20 = pixel(15,{ix, iy}) = =20 --* <STRONG><-- Here's where the ball gets = = end if<BR> end=20 for<BR> end for<BR> = for iy =3D=20 267 to 300 = do<BR> for ix=20 =3D 200 to 300=20 = nbsp; =20 if get_pixel({ix, iy}) =3D 5=20 = pixel(9,{ix,=20 = ; =20 end if<BR> end=20 for<BR> end for<BR> = ball =3D=20 save_image({193,193},{308,308}) =20 -- Where was it that the picture of ball was=20 created?</DIV></FONT> <DIV><FONT face=3DArial = ------=_NextPart_000_0011_01C01344.D40B7B40--