Is there an alternative to scrolling?

Started by johanvepa, Sun 25/10/2015 12:30:18

Previous topic - Next topic

johanvepa

Still toying with the player walking across the large map.

But I find the scrolling feature is a bit hard on the eyes. Are there alternatives? Like instead of scrolling, the screens viewport centering on player character whenever player character walks far enoug away from the last place it centered on.

If any of you remember these games, I liked the way this worked in Dark Sun, but Ultima VII was too stringent in having the camera follow the character excatly.

Is there perhaps a mod for this?

I could probably write some function on my own, but I would still need to turn of the default scrolling. Is this possible?



Mandle

#1
Yes, it's possible: Almost anything is in AGS...

What you need to do is have a Repeatedly Execute bit in your code that asks AGS to check on where the x and y locations of your character are:

Then: If either location goes "out of bounds" (like strays within the 10% boundary of the top, bottom, left, right edges of the playfield) then the camera recenters on the main chacters...(The exact command is something like: CameraViewpoint or something but yeah, not exactly that...it's in the manual)

Best of luck with your project! :)

Kumpel

Maybe you wanna try out the smooth scrolling module? Following the character all the time can be annoying too on big maps imho - especially in adventure games where the player wants to focus on the scene not follow some interesting thing with the eye, while the character is walking and thus moving it. Allso I think animated backgrounds really could become buggy and ugly if you do that.

johanvepa

Quote from: Mandle on Sun 25/10/2015 12:41:32
Yes, it's possible: Almost anything is in AGS...

What you need to do is have a Repeatedly Execute bit in your code that asks AGS to check on where the x and y locations of your character are:

Then: If either location goes "out of bounds" (like strays within the 10% boundary of the top, bottom, left, right edges of the playfield) then the camera recenters on the main chacters...(The exact command is something like: CameraViewpoint or something but yeah, not exactly that...it's in the manual)

Best of luck with your project! :)

Can't find any function called CameraViewpoint, so I bet we're talking about SetViewport   ;)
But this was my original intention, only I thought I'd go ahead and see if anyone had a mod that did this already.

Still, I need to figure out how to turn off AGS scrolling ???

And where do I find this smooth mod, it sounds interesting?


SMF spam blocked by CleanTalk