
-----------------------------------
noobprogrammer123
Tue May 18, 2004 5:09 pm

picture variables
-----------------------------------
if i have 52 different pictures (one for each card) do i have to make a variable for each one (var pic1:int) and declare each variable (pic1:=Pic.FileNew...)?

-----------------------------------
AsianSensation
Tue May 18, 2004 5:12 pm


-----------------------------------
depends on what you named your picture files.

I suggest name your pictures:

1.bmp
2.bmp
3.bmp
...
52.bmp

and you can declare the variables in 4 lines

var picID : array 1 .. 52 of int

for rep : 1 .. 52
    picID (rep) := Pic.FileNew (intstr (rep) + ".bmp")
end for


-----------------------------------
noobprogrammer123
Tue May 18, 2004 5:22 pm


-----------------------------------
what do i put when i want to draw them

-----------------------------------
Paul
Tue May 18, 2004 5:23 pm


-----------------------------------

Pic.Draw (picID(pic#), xposition, yposition, picCopy) 
