
-----------------------------------
SunsFan13
Tue Jun 10, 2008 2:41 pm

Putting a new image over existing one
-----------------------------------
Okay, I'm JUST about done my Jeopardy game that I've been working on, the only thing I've got left to do is to replace the questions you've chosen with a different button so that you can't press it again...

I want it so that when you click say 100$ for sports.
http://img.photobucket.com/albums/v446/ka_vicious/Catagories.jpg

this picture comes up over top of 100$ under sports when you return to the categories screen.
http://img.photobucket.com/albums/v446/ka_vicious/CheckMarkButton.jpg

this is a chunk of the code for the sports column (I have all the columns done, but not much point in posting them all)


var x, y, button : int

        Mouse.Where (x, y, button)
        Text.Locate (1, 1)
        if x > 40 and x < 185 then
            if y > 310 and y < 365 and button = 1 then
                selection := 11
            elsif y > 250 and y < 305 and button = 1 then
                selection := 12
            elsif y > 180 and y < 240 and button = 1 then
                selection := 13
            elsif y > 125 and y < 180 and button = 1 then
                selection := 14
            elsif y > 60 and y < 115 and button = 1 then
                selection := 15
            end if
        end if


-----------------------------------
michaelp
Tue Jun 10, 2008 8:43 pm

RE:Putting a new image over existing one
-----------------------------------
You use Pic.Draw and for the last parameter, you use picCopy or piccopy or picopy. Gotta check the documentation on the last argument.

-----------------------------------
riveryu
Tue Jun 10, 2008 10:09 pm

Re: Putting a new image over existing one
-----------------------------------
wow, a guy in my class did the exact same thing (as in concept). 2D arrays are useful in tile system. 
If you yoour whole thing is in a loop, you can check if any1 of the tiles is marked by for loop.

 if Marked:=true

 then 
        Pic.Draw("CheckMark.bmp")
 else 
           Pic.Draw("Sports$" + intstr(tileNum)+".bmp")

 end if

-----------------------------------
SunsFan13
Wed Jun 11, 2008 9:55 am

RE:Putting a new image over existing one
-----------------------------------
Thanks guys. :D
