Computer Science Canada GUI |
Author: | beedub [ Thu May 08, 2003 6:50 pm ] |
Post subject: | GUI |
is there ne way i can do a picture as a gui?? |
Author: | beedub [ Thu May 08, 2003 6:54 pm ] | ||
Post subject: | |||
like when a make a pic on turing lets say like this:
i was wondering if i can amake that a gui, then when someone presses it, it links to another scene. |
Author: | Tony [ Thu May 08, 2003 7:51 pm ] |
Post subject: | |
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" |
Author: | beedub [ Thu May 08, 2003 9:10 pm ] |
Post subject: | |
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 |
Author: | Asok [ Thu May 08, 2003 9:49 pm ] |
Post subject: | |
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. |
Author: | Homer_simpson [ Thu May 08, 2003 10:19 pm ] |
Post subject: | |
http://www.compsci.ca/bbs/viewtopic.php?t=75&start=15 i have the mouse over thing there.... if that's what u want |
Author: | Tony [ Thu May 08, 2003 10:19 pm ] |
Post subject: | |
12 years old, eh?... Maybe I should start watching what I'm saying around here 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 Just make your questions more specific |
Author: | Delta [ Fri May 09, 2003 8:37 am ] |
Post subject: | |
I wish I started programming when I was 12, then maybe I'd be at Catalyst's level |
Author: | Homer_simpson [ Fri May 09, 2003 11:30 am ] |
Post subject: | |
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). |
Author: | Office of the Registar [ Fri May 09, 2003 2:08 pm ] |
Post subject: | |
i also have a commandor 64, didn't know that it used so it just collects dust now... |
Author: | Homer_simpson [ Fri May 09, 2003 2:18 pm ] |
Post subject: | |
I ever have some old commodore games on TAPE, lol. I used to have Rambo 2 ,Ninja 3, James bond.... Bwahahahahahahaarrrggg... gooood memories |
Author: | beedub [ Sat May 10, 2003 1:11 pm ] |
Post subject: | |
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 |
Author: | void [ Sat May 10, 2003 1:35 pm ] | ||
Post subject: | |||
LIKE TONY SAID....COLISION DETECTION....IF "IMAGE" IS A SQUARE...THEN ITS LIKE THIS y1 __ x1 |_| x2 y2 (that should be a square) 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
i know its not perfect...and its prolly bad programin...but that hopefully stops you from copying the program while helping you understand what its doing 8) ....whoa these emoticons are so entertaining.... |
Author: | Homer_simpson [ Sat May 10, 2003 4:35 pm ] |
Post subject: | |
i think mouse action is the same as the mouseover...? isn't it? |
Author: | beedub [ Sun May 11, 2003 10:32 am ] |
Post subject: | |
i wasnt thinking of mouseover i was thinking of: if pressed then screen changes... |
Author: | beedub [ Sun May 11, 2003 10:38 am ] |
Post subject: | |
so void, would i have to create new variables like : x1,x2,y1,y2, or is x being multiplied by trhe number like: x*2? |