I was wondering what is the difference between normal
imagecommands and ones that start with
tween_. Would be helpful to know!
edited 1×, last 05.04.18 01:26:19 am
Scripts
What is tween?
What is tween?
1

imagecommands and ones that start with
tween_. Would be helpful to know!
imagealpha (id, alpha) -> sets the alpha instantly
tween_alpha (id, time, alpha) -> animates the alpha over time in milliseconds
tween_scale.
Apache uwu: said it's a lot smoother when you use tween_.
image[id]=image("gfx/image.png",568,649,2)
imagealpha(image[id],0.5)
tween_scale(image[id],30,0,1)
Nova: 3,000 is 3 seconds so I did 30,000 and it worked!
Mami Tomoe: tween_scale(image[id],30,0,0)
Masea:
tween_move.local x=568
local y=649
local w=100 -- todo: set actual image width here
image[id]=image("gfx/image.png",x,y,2)
imagealpha(image[id],0.5)
tween_scale(image[id],30000,0,1)
tween_move(image[id],30000,x-w,y)
DC: Thanks! It worked, but I had to change it up a little.local x=568
local y=649
local w=100 -- todo: set actual image width here
image[id]=image("gfx/image.png",x,y,2)
imagealpha(image[id],0.5)
tween_scale(image[id],30000,0,1)
tween_move(image[id],60000,x-w,y)
x-w/2or does that lead to a different result?
1
