Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Vel on Fri 16/05/2003 19:10:55

Title: Suggestion: Parallex scrolling
Post by: Vel on Fri 16/05/2003 19:10:55
Why don't you add parralex scrolling, Chris? It'll help us to make "cooler" rooms with scrolling object at different pace. I know that there's a plugin, but that doesn't make objects scroll at different speed. That just makes the object not to scroll.
Title: Re:Suggestion: Parallex scrolling
Post by: Mennuz on Fri 16/05/2003 20:00:17
wiseass mode:
its ParaLAX scrolling ;)
/wiseass mode

I like the idea, especialy for intro's :)
Title: Re:Suggestion: Parallex scrolling
Post by: Scorpiorus on Fri 16/05/2003 21:02:01
The problem it's not evident how it supposed to work. Imagine you have a scrolling object but that means it has to has variable co-ordinates. Or at least the real co-ordinates do not match the visible ones. Then what to do with functions like GetObjectAt() or SetObjectPosition() for example? I mean how to handle such objects? I think to implement this feature one have to re-organize AGS co-ordinate system. We nead X,Y and Depth charactiristics or X,Y,Z. The same for characters, their collisions etc.
I agree it may be great to use it in the particular case like intros but implementing it into AGS IMHO would be cost amount of work for CJ.

What I can do is to implement two functions into the parallex plugin:
GetSpriteX() and GetSpriteY(). And also a function that adds the sprite but doesn't show it on the screen. Instead you could use GetSpriteX(),  GetSpriteY() to place objects:

room_repeatedly() {

 SetObjectPosition( obj, GetSpriteX(), GetSpriteY() );
 ....
 ...
 etc.

}

thereby you can align all objects you need.

-Cheers
Title: Re:Suggestion: Parallex scrolling
Post by: Vel on Sat 17/05/2003 17:04:22
No, when you add the object, there would be a "Scrolling speed" button, which    would differ from 0% to 200%.
Title: Re:Suggestion: Parallex scrolling
Post by: Scorpiorus on Sat 17/05/2003 17:58:25
QuoteNo, when you add the object, there would be a "Scrolling speed" button, which  would differ from 0% to 200%.
but what if it is moving also? ( MoveObject() )
Title: Re:Suggestion: Parallex scrolling
Post by: Trapezoid on Sat 17/05/2003 18:36:14
You must not be using that plugin correctly. I've used it and it works fine. It comes with a TXT file, read it.
Title: Re:Suggestion: Parallex scrolling
Post by: Scorpiorus on Sat 17/05/2003 19:04:51
vel: Reading Trapezoid's message I just realized we probably misunderstand each other. I assuming you was talking about AGS objects and their ability to hold interactions. If you just need sprites scrolling at different speeds then yes you can do it with the plugin.
Title: Re:Suggestion: Parallex scrolling
Post by: Vel on Sat 17/05/2003 19:28:54
There must be a misunderstanding. Didn't the parallax scrolling plugin only did the sprite not to scroll? Or was that an earlier version?
Title: Re:Suggestion: Parallex scrolling
Post by: Scorpiorus on Sat 17/05/2003 21:10:58
It was the very first (test) version. The current one (v1.01) allows that thingy. :)

Link: Download (http://invis.free.anonymizer.com/http://geocities.com/scorpiorus82/ags_parallax.zip)

-Cheers
Title: Re:Suggestion: Parallex scrolling
Post by: Snake on Mon 19/05/2003 05:03:04
Where's that plug-in thread?


--Snake
Title: Re:Suggestion: Parallex scrolling
Post by: Scorpiorus on Mon 19/05/2003 09:26:25
Snake: I hadn't posted it in a separate thread. The one I had anounced the plugin in is here: http://www.agsforums.com/yabb/index.php?board=2;action=display;threadid=2326 (http://www.agsforums.com/yabb/index.php?board=2;action=display;threadid=2326)
Title: Re:Suggestion: Parallex scrolling
Post by: Timosity on Mon 19/05/2003 18:24:07
I haven't tried this plugin yet but i sounds pretty good,

I noticed the last time I played MI2 that it had some Parallex scrolling, that must have been pretty technical for the day
Title: Re:Suggestion: Parallex scrolling
Post by: scotch on Mon 19/05/2003 22:05:02
Acutally it wasn't.. parralax scrolling has been used in arcade games since forever :)

I think I'll try out this plugin, I couldn't find it once before when I was looking for it.