Smooth GUI Drop Down

Started by Priabudiman, Sat 18/07/2015 19:33:21

Previous topic - Next topic

Priabudiman

Hey guys,

Need a help on this one, I already don a drop down GUI but the appearance when its on is not smooth, its just kinda pops instantly instead of smoothly sliding in from the top, anyone can help me with the correct code for this?

Slasher

#1
you could either drop the gui down/up in stages or use the Tween module:

http://www.adventuregamestudio.co.uk/forums/index.php?topic=38015.0

Code: ags

// an example of dropping down a gui using tween module
thisgui.TweenPosition(1.2, 0, 200, eEaseInEaseOutTween, eBlockTween); // 1.2 = time, left x, top y


hope this helps


ollj

definitely use the tween module!

SMF spam blocked by CleanTalk