[futurebasic] Re: [FB] Panel Animation in FB

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : September 1999 : Group Archive : Group : All Groups

From: "Phil Yates" <phil.yates@...>
Date: Wed, 08 Sep 1999 20:41:06 +0600
> I'm trying to write an experiment in which I want people to pick a box with
> the mouse, then I want the box to appear to have a panel that slides up to
> reveal a prize (in the form of a pict resource) behind it (or not=black,
> means they picked the wrong one).

Two ways - one easy, or more difficult.

Easy - use a SCROLL on the panel door, scrolling it one pixel at a time. If this
is still too fast, put a DELAY n into the loop that does the scroll. When it's
fully scrolled up, draw the PICT.

Better, but more difficult. Create a gWorld (1) for your main picture, then
create another gWorld (2) which will be moved to your output screen. Copy the
box / panel from gWorld 1 to gWorld 2, then overwrite the door, then copy this
to the screen. Then do it again with the door slightly further up, etc. This is
"real" animation, and will look as smooth as you'd probably want.

Download the "Base program" from my web site at http://www.hawk.ndirect.co.uk -
it's got all the gWorld stuff already done for you.

HTH,

Phil.