Title: How?
Star fox - July 28, 2003 04:11 AM (GMT)
How do you make it so that when the mouse arrow is on one of the menu bottons,, it lights up, and when you move it it changes back?
GameHampe - July 28, 2003 09:12 AM (GMT)
Put this in step event of the button object,
| CODE |
{ if (position_meeting(mouse_x,mouse_y,self)) image_single = 1 else image_single = 0 }
|
and make a 2 frame animation where one button is normal , and one is lighted up.
casegrinder - August 8, 2003 10:39 AM (GMT)
or you can do it without an code just use the mouse event and then mouse enter
and then use an var (image_single and at value 2 if picture 2 is the lighter one)
and if you want to go out with the mouse just use the event of the mouse mouse out and then the same so (image_single and at value 1 if the dark picture is 1)
Star fox - August 8, 2003 09:26 PM (GMT)
Thats just how I did it to
Burning Sheep Productions - August 9, 2003 09:30 AM (GMT)
But code is so much neater.
Monkster - August 16, 2003 06:36 PM (GMT)
ya, i think code is neater, and besides, i heard that d & d slows your game down. Is that true?
casegrinder - August 16, 2003 08:25 PM (GMT)
i don't think so and why should it slow down your game it is d&d is just a type of shortcut to a code
and becuase i am not really experienced with gml coding i use drag and drop and gml coding
Monkster - August 16, 2003 08:51 PM (GMT)
well, sometimes you have to use code to do something, there isn't a d & d for every function!
and isn't the d&d a long cut cuz the regular way would be to just use code, but when you use d & d it writes the code and then executes it.
Star fox - August 25, 2003 08:17 AM (GMT)
If I dont know a code for it I will find a hard way to do it, and who care about neatness, as long as the game gets done.
Monkster - August 26, 2003 02:54 AM (GMT)
how, now i know that u like to do stuff the hard way. Now stop replying to week old posts!
Burning Sheep Productions - August 26, 2003 08:26 AM (GMT)
I say code is the harder way.
You have to type whole words instead of draging domething into a box and selecting a menu option.
And code is so much easier to read!
Monkster - August 27, 2003 02:50 AM (GMT)
i agree, code is much easier to read...and for some things u NEED code to do it (no d & d actions). But if ur really good at coding(like me ;) ), it is much quicker than d & d.
Burning Sheep Productions - August 27, 2003 09:05 AM (GMT)
And Mark is working to get it faster, 4 times faster I think.
Monkster - August 28, 2003 02:11 AM (GMT)
Is that upgrade coming out in version 5.1?
Burning Sheep Productions - August 28, 2003 08:40 AM (GMT)