Computer Science Canada mouseover |
Author: | beedub [ Sat May 17, 2003 11:49 am ] | ||
Post subject: | mouseover | ||
hey all my.. mouseover only works for the first button... why is this? here is the code...
also is there ne code to get rid of the detection lines?? (the little lines moving up and downt he buttons) |
Author: | nate [ Sat May 17, 2003 3:23 pm ] |
Post subject: | View.Update |
1 thing which would spare anyone who is playing that games eyes would be to use (these are the so called detection lines! (but they actually aren't)) View.Set ("offscreenonly") put this right before you loop then put right before the end loop View.Update as for not workin for any of the other boxes i am 2 lazy to figure it out -Nate |
Author: | Homer_simpson [ Sat May 17, 2003 4:30 pm ] | ||
Post subject: | |||
the mouse over function needed alittle upgrade...
|
Author: | Homer_simpson [ Sat May 17, 2003 4:32 pm ] | ||||
Post subject: | |||||
add this to the beggining of the program
and add this before end loop
|
Author: | beedub [ Sat May 17, 2003 6:46 pm ] |
Post subject: | |
ty now it looks perfect.. |
Author: | beedub [ Sat May 17, 2003 7:36 pm ] |
Post subject: | |
one other thing... if i wanted to make them as buttons what would i do... whatdotcolor... mouse.where??I only ask this cuz when it changes color i dont really know what to do.. |
Author: | Tony [ Sat May 17, 2003 7:59 pm ] |
Post subject: | |
you shouldn't use what dot color, because that way you'd have to make all your objects different color just stick to math instead |
Author: | beedub [ Sat May 17, 2003 9:40 pm ] |
Post subject: | |
thats my porblem...since i am so young i havent been able to learn difficult math..the only way i can do it is with code.. or get some1 to help me with it... that is why i am here |
Author: | beedub [ Sun May 18, 2003 3:27 pm ] |
Post subject: | |
ne ideas? |
Author: | Tony [ Sun May 18, 2003 4:49 pm ] |
Post subject: | |
i though you already got that mouseover procedure done? |
Author: | void [ Sun May 18, 2003 7:39 pm ] |
Post subject: | |
can i suggest summin to u...USE GIU'S...ur menu isn't bad, but its kinda bad coz of the loop constantly refreshing itself...i'll c if i can make it betta...i'll post the finsished thingy soon...but yea...consider using a GUI..much easire...just create buttons and assigne procedures to them... |
Author: | Tony [ Sun May 18, 2003 10:39 pm ] |
Post subject: | |
but so does GUI.. run in a loop I mean... its not VB's on event programming, its still linear loop. you know that loop GUI.ProcessEvent end loop thingy? well basically its a shorter way of sticking everything in a loop. Ofcourse once you start processing your GUI, you cant do much more... |
Author: | beedub [ Sun May 18, 2003 11:00 pm ] |
Post subject: | |
ya i know it... since this is my first actual good game.. i consider this like my tutorial game.. filled with flashing stuff... |
Author: | void [ Mon May 19, 2003 12:07 pm ] |
Post subject: | |
too lazy to actualy make a good one for u..well..if u dun wanna have a GUI event...then do this..have a "switch" variable for each button...and if the button has the mouse over it, then the "switch" is tripped and the color changes, but when the mouse moves from the vicinity then the switch is off and the button is redraw..1 time...this will stop the refresh thingy u'v got going.....tony...i dunno..GUI's look much better coz it doesnt "refresh" as often....but wateva...ur the boss... |
Author: | beedub [ Mon May 19, 2003 2:55 pm ] |
Post subject: | |
can u have mouseover GUIs?... and void what school you go to? |
Author: | void [ Tue May 20, 2003 4:47 pm ] |
Post subject: | |
Waterloo Collegiate Insitute...and i've never experimented with mouseovers in GUI's...altho if you make a GUI menu (like the ones in word, they appear at the top and you click for the menu to drop down) it autmatically does highlight where the text is originally black, but when you highligh it it turns white with black color back.... |
Author: | beedub [ Tue May 20, 2003 5:33 pm ] |
Post subject: | |
cool you go to wci... thats cool... i go to sjk private school... can you put a sample text of this gui? |