
-----------------------------------
gohabsgo007
Mon Dec 01, 2014 1:10 pm

Wheres waldo on turing?
-----------------------------------
What is it you are trying to achieve?
I am trying to make a program in which i have a picture in the background and I have the user find waldo on the picture. Once the user clicks the picture of waldo, waldo moves. I have to do it in a loop.

What is the problem you are having?
I don't know how to make the program!

Describe what you have tried to solve this problem
I have tried nothing

Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)






Please specify what version of Turing you are using
I am using  Turing 4.1 :D

-----------------------------------
Nathan4102
Mon Dec 01, 2014 3:53 pm

Re: Wheres waldo on turing?
-----------------------------------

Describe what you have tried to solve this problem
I have tried nothing


I've found your problem.

Try to break it down into more simple steps.

You'll need to be able to draw images to the screen.
You'll need to be able to detect mouse click coordinates.
You need to check if a point is contained in a box.

Once you can do these, if you see how they relate to your problem you can slowly start piecing a program together.

-----------------------------------
gohabsgo007
Wed Dec 03, 2014 1:29 pm

Re: Wheres waldo on turing?
-----------------------------------
Natahn4012
I did what you told me an it works. Only problem, I don't know how to make the picture move, when the users mouse clicks it. 
P.S I used a marvel picture as my background and a batman picture as my "Waldo". 

Code: View.Set ("graphics:1920;1080")
var marvel : int := Pic.FileNew ("G:/Profile/Desktop/Wheres Waldo/Marvel.jpg")
Pic.Draw (marvel, maxx div 400, maxy div 100, picCopy)
loop
    var batman : int := Pic.FileNew ("G:/Profile/Desktop/Wheres Waldo/batman.jpg")
    Pic.Draw (batman, 500, 500, picCopy)
end loop

End of code
P.P.S
I have to use a functions/procedures.
