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

Username:   Password: 
 RegisterRegister   
 GUI
Index -> Programming, Turing -> Turing Help
Goto page 1, 2  Next
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
beedub




PostPosted: Thu May 08, 2003 6:50 pm   Post subject: GUI

is there ne way i can do a picture as a gui??
Sponsor
Sponsor
Sponsor
sponsor
beedub




PostPosted: Thu May 08, 2003 6:54 pm   Post subject: (No subject)

like when a make a pic on turing lets say like this:
code:
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




PostPosted: Thu May 08, 2003 7:51 pm   Post subject: (No 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"
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
beedub




PostPosted: Thu May 08, 2003 9:10 pm   Post subject: (No 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
Asok




PostPosted: Thu May 08, 2003 9:49 pm   Post subject: (No subject)

actually it shows EXACTLY what you need Wink

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




PostPosted: Thu May 08, 2003 10:19 pm   Post subject: (No 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
Tony




PostPosted: Thu May 08, 2003 10:19 pm   Post subject: (No subject)

12 years old, eh?... Confused Maybe I should start watching what I'm saying around here Shocked

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
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Delta




PostPosted: Fri May 09, 2003 8:37 am   Post subject: (No subject)

I wish I started programming when I was 12, then maybe I'd be at Catalyst's level Smile
Sponsor
Sponsor
Sponsor
sponsor
Homer_simpson




PostPosted: Fri May 09, 2003 11:30 am   Post subject: (No 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).
Office of the Registar




PostPosted: Fri May 09, 2003 2:08 pm   Post subject: (No subject)

i also have a commandor 64, didn't know that it used
so it just collects dust now... Sad
Homer_simpson




PostPosted: Fri May 09, 2003 2:18 pm   Post subject: (No subject)

I ever have some old commodore games on TAPE, lol.
I used to have Rambo 2 ,Ninja 3, James bond.... Bwahahahahahahaarrrggg... gooood memories
beedub




PostPosted: Sat May 10, 2003 1:11 pm   Post subject: (No 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 Wink...
i dont care if u swear lol
void




PostPosted: Sat May 10, 2003 1:35 pm   Post subject: (No subject)

LIKE TONY SAID....COLISION DETECTION....IF "IMAGE" IS A SQUARE...THEN ITS LIKE THIS

y1
__
x1 |_| x2
y2

(that should be a square) Laughing

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
code:

var x,y,button:int
loop
Mouse.Where (x,y,button)
if x>=x1 and x<=x2 and y>=y2 and y<=y1 and button=1 then
put "YOU HAVE CLICKED ON THE BUTTON"
%%this is the part where you redirect it to the function/procedure/etc.
end if
end loop

i know its not perfect...and its prolly bad programin...but that hopefully stops you from copying Twisted Evil the program while helping you understand Wink what its doing 8) ....whoa these emoticons are so entertaining.... Laughing
Homer_simpson




PostPosted: Sat May 10, 2003 4:35 pm   Post subject: (No subject)

i think mouse action is the same as the mouseover...? isn't it?
beedub




PostPosted: Sun May 11, 2003 10:32 am   Post subject: (No subject)

i wasnt thinking of mouseover i was thinking of: if pressed then screen changes...
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 2  [ 16 Posts ]
Goto page 1, 2  Next
Jump to:   


Style:  
Search: