Page 1 of 1

Scrollbar Effect

PostPosted: Sat Dec 29, 2012 10:36 pm
by Hblade
How would I create a scrollbar effect? (When the scrollbar moves down, something else moves up)?

Even more so, I want new actors (once created vertically) to extend the scrollbar

Re: Scrollbar Effect

PostPosted: Sun Dec 30, 2012 5:49 am
by skydereign
Well, if you want something to decrease, as something else decreases, that is pretty easy. All you need to do is subtract. Here's an example of that.
scroll_bar.ged
(1.25 KiB) Downloaded 114 times

You may or may not need to create new actors depending on the scroll distance though. One method is to create all of the actors, and parent them to something like the reference actor in the ged I posted.

Re: Scrollbar Effect

PostPosted: Sun Dec 30, 2012 6:10 am
by Hblade
Ahh wow. Thanks sky

And using y=min(0, max(y, -240)); you can easilly control how far on the screen it goes