ID:2273768
 
So I was thinking of how to do a animated hotkey/bar system and the idea was to make a empty container for the 1-10 slots.Then you attach the overlays to in the form of the skills. After which you would then animate to slide up or down or fade in or out via animate feature. Anyone see any flaws or possible alternatives?
Uh. Whatever floats your boat. Just know that animate() is client-side, and shifting pixel_x/y will not move the object itself; the visual and actual location will differ.
only thing i wonder is if say the objects are visually moved say offscreen but i were to click where they are when visable would it activate the objects?
Spawn
you'd need a slide_animation() library
Pixelmovement()
var/gradient, fade //user set slide & fade
var/i = new/icon/overlay
slide_topdown()
for(i=0, i<=gradient, i++)
step_x: x offset from the corner of loc
step_y: y offset from the corner of loc
i.fade()

fade()
for(i=0, i<=fade, i++)
alpha-20
if(i.alpha<=0)
del(src)


Mousedrag() see if you can merge the two together
In response to Xavion_Zenovka
Xavion_Zenovka wrote:
only thing i wonder is if say the objects are visually moved say offscreen but i were to click where they are when visable would it activate the objects?

I believe that only changes with mouse-opacity.
Can I get a quick arithmetic to solve the speeding up and slowing down of fading effects?
//rate of transition
var/fade_in, fade
fade=10 //duration of fade
Fade_in()
for(fade_in, fade_in<=fade, fade_in++)
/*
sleep(fade_in-10) //Kaio? Delaying negative integers anyone?
*/