Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Ozwalled on Thu 12/08/2004 12:40:43

Title: Looping viewport change?
Post by: Ozwalled on Thu 12/08/2004 12:40:43
I was wondering if it would be possible to script a looping, non-blocking viewport change.

I was thinking it would be useful to simulate the bobbing motion of a ship floating on wavey water (if you were on its deck, for example).
Title: Re: Looping viewport change?
Post by: SilverWizard_OTF on Thu 12/08/2004 14:59:33
Maybe you could represent an effect like this with a ShakeScreenBackground script command. 
Title: Re: Looping viewport change?
Post by: Ozwalled on Thu 12/08/2004 15:10:18
Maybe... but does the screen shaking move all over the place, both vertically and horizontally (what I figured it did, though I could be wrong), or can/ does it work on a single axis/ plane (in this case, vertical)?
Title: Re: Looping viewport change?
Post by: SilverWizard_OTF on Thu 12/08/2004 15:21:12
Well, i made some experiment and i think thatÃ,  it is based on the values that you will set.
I did this:Ã,  Ã, ShakeScreenBackgroung(50,10,10);
I mean, i put the last two values the same. And with that, it was shaking only verical.

Well, try it!Ã,  Ã, With values 50,10,10.
-------------
Oh, and put it to the Repeatedly_execute, allright?

--------
Oh, i realised that with this command, the screen shakes only vertical, to me  you know!   Maybe it is because of the resolution, or colour depth..
I have 800*600 and 16-bit.
Title: Re: Looping viewport change?
Post by: Darth Mandarb on Thu 12/08/2004 16:19:23
Please, don't triple post ... use the modify button.Ã,  It's what it's there for! (scummyb edited your posts, wizard)

I haven't used shakescreen in a long time (since I was first experimenting with AGS) but isn't it blocking?
Title: Re: Looping viewport change?
Post by: SilverWizard_OTF on Thu 12/08/2004 19:13:47
I was refered to ShakeScreenBackGround, which is not blocking.
ShakeScreen is bloking.

Well, puting ShakeScreenBackground to repeatedly_execute, will make this that Oswalt wants.