Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: a-v-o on Tue 18/03/2003 18:05:43

Title: SmartScrolling-Script updated
Post by: a-v-o on Tue 18/03/2003 18:05:43
As someone had problems with the older version, I looked into the script and into the help file and realized that CJ added a roomwidth variable. So I changed the script.

Also changed: It can be defined how far the room should scroll. In the script I used 3/4 of the screen width.

Download for those who are interested:
ftp://a-v-o.selfhost.de/ags/SmartScrolling.txt
Title: Re:SmartScrolling-Script updated
Post by: danny* on Tue 18/03/2003 18:17:01
Since I was the one with the problem.......thank you a-v-o  :D :)
Title: Re:SmartScrolling-Script updated
Post by: edmundito on Tue 18/03/2003 18:47:25
what's scroll mul and scroll div?

here's a trick I learned:

while(character[GetPlayerCharacter()].walking) {
 SmartScrolling();
 Wait(1);
}
Title: Re:SmartScrolling-Script updated
Post by: Spyros on Tue 18/03/2003 19:16:27
I also had a problem (the room after a blocking walk scrolled back to where the char was ) I don't know if that's fixed in the new version. Is it?
Title: Re:SmartScrolling-Script updated
Post by: a-v-o on Tue 18/03/2003 19:53:11
Quote from: netmonkey on Tue 18/03/2003 18:47:25what's scroll mul and scroll div?
In the previous script when the scrolling finished then the character was in the middle of the screen. After walking over less than half of the screen scrolling started again. With mul/div you can adjust the position. With mul/div = 1/2 the character will be in the middle of the screen. With mul/div = 3/4 it will end so that if the character continues its way then it can walk over about 3/4 of the screen before scrolling starts again. Just try out 1/2 and 3/4 to see the difference.
(btw: 2/4 = 1/2 = 3/6 = ...)




Quote from: Spyros on Tue 18/03/2003 19:16:27
I also had a problem (the room after a blocking walk scrolled back to where the char was ) I don't know if that's fixed in the new version. Is it?
As repeatedly_execute isn't called during the execution of a blocking function, the SmartScrolling won't work. Better use a non-blocking function and netmonkey's script.
Title: Re:SmartScrolling-Script updated
Post by: Barcik on Tue 18/03/2003 20:13:10
 :)
Lovely script. Rock on, mate.
Title: Re:SmartScrolling-Script updated
Post by: danny* on Wed 19/03/2003 09:01:31
it works very well!! :)
Thanks Andreas!!!
Title: Re:SmartScrolling-Script updated
Post by: Scummbuddy on Tue 24/06/2003 22:18:04
I know some people around the boards are looking for something like this, so - bump bump

I'm also going to consider using this, so I'll let you know if I have any trouble or if I just want to praise you.  ;D
Title: Re:SmartScrolling-Script updated
Post by: on Wed 25/06/2003 08:46:38
oh nutz!, the link to the script doen't work, i just get "The page cannot be displayed" :(

Paranoia
Title: Re:SmartScrolling-Script updated
Post by: a-v-o on Wed 25/06/2003 08:49:37
Please try again. My server was just down this morning.
Title: Re:SmartScrolling-Script updated
Post by: on Wed 25/06/2003 09:23:24
thanks a-v-o, yes it worked this time ;D, looks great, i'm definitely using it, and i'll post a short demo for C+C to see if i achieve the effects i'm aiming for :D

thanks Paranoia
Title: Re:SmartScrolling-Script updated
Post by: Jodo Kast on Wed 26/11/2003 03:55:29
Anyone have this?

Google Searched for it, SmartScrolling.txt

Please help!
Title: Re:SmartScrolling-Script updated
Post by: scotch on Wed 26/11/2003 04:34:07
There is a version of the code on this page:
http://ags.slaveinostudios.com/tips.html

Apparently it might not be the final one that was here, and a bit buggy but i haven't tried it.
Title: Re:SmartScrolling-Script updated
Post by: Jodo Kast on Wed 26/11/2003 04:45:33
Thanks for your prompt reply.

That's the one I found, so I will keep checking back to see if there's an advanced version.

EDIT: I found the Parallax plugin so I'll try that, but if the homepage for a-v-o is correct, his stuff was deleted because of too much bandwidth!  Hope I'm wrong about that.

Thanks again!
Title: Re:SmartScrolling-Script updated
Post by: on Mon 01/12/2003 07:57:52
 ??? None has succeded in downloading the script and can put it somewhere in his homepage?????

Thanks