SmartScrolling-Script updated

Started by a-v-o, Tue 18/03/2003 18:05:43

Previous topic - Next topic

a-v-o

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

danny*

#1
Since I was the one with the problem.......thank you a-v-o  :D :)

edmundito

#2
what's scroll mul and scroll div?

here's a trick I learned:

while(character[GetPlayerCharacter()].walking) {
 SmartScrolling();
 Wait(1);
}

Spyros

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?

a-v-o

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.

Barcik

 :)
Lovely script. Rock on, mate.
Currently Working On: Monkey Island 1.5

danny*

it works very well!! :)
Thanks Andreas!!!

Scummbuddy

#7
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
- Oh great, I'm stuck in colonial times, tentacles are taking over the world, and now the toilets backing up.
- No, I mean it's really STUCK. Like adventure-game stuck.
-Hoagie from DOTT

Paranoia

oh nutz!, the link to the script doen't work, i just get "The page cannot be displayed" :(

Paranoia

a-v-o

Please try again. My server was just down this morning.

Paranoia

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

Jodo Kast

Anyone have this?

Google Searched for it, SmartScrolling.txt

Please help!

scotch

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.

Jodo Kast

#13
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!

Elianto_Guestmode

 ??? None has succeded in downloading the script and can put it somewhere in his homepage?????

Thanks

SMF spam blocked by CleanTalk