Forums
Fading text button
|
|
How would i make a button with the starting text c_black then when the mouse is in the sprite it lights up to c_white, and then when the mouse leaves the sprite it goes back to black, im thniking about image_alpha? Sapphire Game Studios |
|
|
|
you want to have a sprite of the normal and the highlighted button(can be the same sprite with a subimage)
The best forum ever, no question about it
|
|
|
|
i no how to do that, i wanted it to fade in and out Sapphire Game Studios |
|
|
|
if (mouse_x > x&&mouse_x < sprite_width&&mouse_y > y&&mouse_y < sprite_height&& image_alpha < 1)
><><><><><><><><><><><><><
|
|
|
|
I've posted a tutorial of it here.
|
|
|
|
Miner's code is missing something very important. I'll leave what that is as an exercise to the reader. |
|
|
|
i have no clue whats missin', is it that it goes below negative 0 and also my mouse doesnt have to be on ti to start fading
Sapphire Game Studios |
|
|
|
QuoteMiner's code is missing something very important. I'll leave what that is as an exercise to the reader.
><><><><><><><><><><><><><
|
|
|
|
well i used darth's example so its working now, thanks Sapphire Game Studios |
|
|
|
Quotewell i used darth's example so its working now, thanks
|
|
|
|
Hint: What does it mean for mouse_x to be less than sprite_width? Significantly, where will the mouse pointer be?
|
|
|
Moderator 2812 posts |
if(mouse_x < x + sprite_width)
Visit www.trollsplatterer.be for some files I made to help people out. |
|

