Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Priabudiman on Sat 18/07/2015 19:33:21

Title: Smooth GUI Drop Down
Post by: Priabudiman on Sat 18/07/2015 19:33:21
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?
Title: Re: Smooth GUI Drop Down
Post by: Slasher on Sat 18/07/2015 19:43:48
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) Select

// 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

Title: Re: Smooth GUI Drop Down
Post by: ollj on Mon 27/07/2015 16:52:57
definitely use the tween module!