Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Putting a new image over existing one
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
SunsFan13




PostPosted: Tue Jun 10, 2008 2:41 pm   Post subject: 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.
Posted Image, might have been reduced in size. Click Image to view fullscreen.

this picture comes up over top of 100$ under sports when you return to the categories screen.
Posted Image, might have been reduced in size. Click Image to view fullscreen.

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)

code:

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
Sponsor
Sponsor
Sponsor
sponsor
michaelp




PostPosted: Tue Jun 10, 2008 8:43 pm   Post subject: 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




PostPosted: Tue Jun 10, 2008 10:09 pm   Post subject: 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




PostPosted: Wed Jun 11, 2008 9:55 am   Post subject: RE:Putting a new image over existing one

Thanks guys. Very Happy
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 4 Posts ]
Jump to:   


Style:  
Search: