GUI does not seem to fade (SOLVED)

Hi,

I have the following code where I animate my popup. Whenever I call the function it does not seem to fade from 0 to 1.

    local function popup(self)
    	self.size.x = 0.4
    	self.size.y = 0.4
    	gui.set_scale(self.popup, self.size)
    	gui.set_color(self.popup, vmath.vector4(0, 0, 0, 0))
    	gui.set_text(self.tutorial,hashes.TUTORIAL[constants.tutorial_state].text)
    	gui.animate(self.popup, hashes.PARAMETER_SCALE, 0.8, gui.EASING_OUTBOUNCE, 0.5)
    	gui.animate(self.popup, gui.PROP_COLOR, vmath.vector3(1,1,1,1), gui.EASING_LINEAR, 0.5)
    end
1 Like

The last line should have a vector4, not vector3.

3 Likes

Thank you.
That solved the problem. :smiley:

2 Likes