Ok so i'm trying to script something unimaginably easy but I am failing.
Basically I want to move a label from off the screen (Y value of approx 210) onto the screen based on its transparency value.
which currently looks like this
Code: ags
which obviously works fine.
However I dont want the movement to linear, I want the speed to slow as it gets closer to the target (y = 174).
I know i could do this with the tween module and i know i could do it by altering the dy based on the distance from the target but surely it should be possible in one line without having to declare other variables.
If you know the target and the progression through the sequence (i.e the transparency value, which is essentially a timer in this case) then you should be able to determine the position of the label.
Am I wrong?
Basically I want to move a label from off the screen (Y value of approx 210) onto the screen based on its transparency value.
which currently looks like this
// in rep ex
gHotspot.Y = 174 + (gHotspot.Transparency / 4);
which obviously works fine.
However I dont want the movement to linear, I want the speed to slow as it gets closer to the target (y = 174).
I know i could do this with the tween module and i know i could do it by altering the dy based on the distance from the target but surely it should be possible in one line without having to declare other variables.
If you know the target and the progression through the sequence (i.e the transparency value, which is essentially a timer in this case) then you should be able to determine the position of the label.
Am I wrong?