
-----------------------------------
beedub
Thu May 08, 2003 6:50 pm

GUI
-----------------------------------
is there ne way i can do a picture as a gui??

-----------------------------------
beedub
Thu May 08, 2003 6:54 pm


-----------------------------------
like when a make a pic on turing lets say like this:
drawfilloval (320,200,50,50,red)
drawoval (320,200,50,50,black)

i was wondering if  i can amake that a gui, then when someone presses it, it links to another scene.

-----------------------------------
Tony
Thu May 08, 2003 7:51 pm


-----------------------------------
ya, called collision detection. Read a tutorial on it.

basically you find the distance between where you click and a point you suppost to click on... and if its whithin the reasonable distance, then it "clicks"

-----------------------------------
beedub
Thu May 08, 2003 9:10 pm


-----------------------------------
it does help somewhat, however it doesnt show how i actually click on the button or image. I am quite confused and when a 12 year old is confused we do bad things.... lol..jk

-----------------------------------
Asok
Thu May 08, 2003 9:49 pm


-----------------------------------
actually it shows EXACTLY what you need ;)

on top of that you can check out the example folder in Turing 4 directory. go to Mouse, it'll be in there.

-----------------------------------
Homer_simpson
Thu May 08, 2003 10:19 pm


-----------------------------------
http://www.compsci.ca/bbs/viewtopic.php?t=75&start=15 i have the mouse over thing there.... if that's what u want

-----------------------------------
Tony
Thu May 08, 2003 10:19 pm


-----------------------------------
12 years old, eh?...  :? Maybe I should start watching what I'm saying around here  :shock: 

anyway, we kind of expect your knowledge to be more then knowing how to draw boxes... so if you dont know anything, please say so...

otherwise ya, read tutorial and figure out how to apply it  :wink: Just make your questions more specific

-----------------------------------
Delta
Fri May 09, 2003 8:37 am


-----------------------------------
I wish I started programming when I was 12, then maybe I'd be at Catalyst's level :)

-----------------------------------
Homer_simpson
Fri May 09, 2003 11:30 am


-----------------------------------
Bwahhahahahahaaarrrr.... i started programming when i was 8(maybe younger not sure =/)  8) 
I had an old commodore 64 that only understood basic(old basic).

-----------------------------------
Office of the Registar
Fri May 09, 2003 2:08 pm


-----------------------------------
i also have a commandor 64, didn't know that it used 
so it just collects dust now... :(

-----------------------------------
Homer_simpson
Fri May 09, 2003 2:18 pm


-----------------------------------
I ever have some old commodore games on TAPE, lol.
I used to have Rambo 2 ,Ninja 3, James bond.... Bwahahahahahahaarrrggg... gooood memories

-----------------------------------
beedub
Sat May 10, 2003 1:11 pm


-----------------------------------
i started when i was around 10 just html crap....i dont need moseover...i need mouseaction pressing. Sorry.. i just started this year so my lyngo aint great ;)... 
i dont care if u swear lol

-----------------------------------
void
Sat May 10, 2003 1:35 pm


-----------------------------------
LIKE TONY SAID....COLISION DETECTION....IF "IMAGE" IS A SQUARE...THEN ITS LIKE THIS

      y1
     __
x1 |_|  x2
     y2

                      (that should be a square) :lol: 

if the use clicks somewhere within that point then direct it to whatever process/procedure/function that you want to.....
the syntax would be something like this (dot use it coz its not that accurate):
top y: y1
bottomy: y2
left x: x1
right x: x2

var x,y,button:int
loop
Mouse.Where (x,y,button)
if x>=x1 and x=y2 and y