Room Scrolling

Started by Blackthorne, Tue 14/02/2006 04:19:19

Previous topic - Next topic

Blackthorne

Hello!

I have a room (640x200) that I'd like to have scroll in a unique way; basically, I want it to appear as two 320x200 rooms - it scroll OVER to the other half of the screen when EGO reaches a certain point (ie the x=319).  Is this possible?


Bt
-----------------------------------
"Enjoy Every Sandwich" - Warren Zevon

http://www.infamous-quests.com

Scummbuddy

You'll have to use setviewport, and either releaseviewport or set it again when you need it, (such as) when they step on a walkable area
- 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

Blackthorne

Thanks!  I shall try that, and report back.  I appreciate the help.


Bt
-----------------------------------
"Enjoy Every Sandwich" - Warren Zevon

http://www.infamous-quests.com

Blackthorne

Okay - is there a way I can make it "PAN" over to the new room instead of just instantly changing?


Bt
-----------------------------------
"Enjoy Every Sandwich" - Warren Zevon

http://www.infamous-quests.com

Gilbert

Yes.
For example:
//pan from left to right:
while (GetViewportX()<320)Ã,  {
Ã,  SetViewport(GetViewportX()+1, 0);
Ã,  Wait(1);
}


(and if you read the manual there's an similar example in SetViewport() :P)

Blackthorne

Gilbot,

Thank you the help... and the advice.  Manuals... DUH!


Bt
-----------------------------------
"Enjoy Every Sandwich" - Warren Zevon

http://www.infamous-quests.com

Candle

Look down this post for a module that was done.
http://www.adventuregamestudio.co.uk/yabb/index.php?topic=24343.0
You may like it .

Ashen

#7
Nice as it is to see that module being plugged (I must get around to releasing it properly...), I don't think it's quite what Blackthorne needs - it updates the Viewport X/Y based on the mouse, rather than character position. Might be able to get some ideas from it, though.
I know what you're thinking ... Don't think that.

Blackthorne

The plugin isn't quite what I need, you're right - but it's a damn fine plugin.  I'll definitely find a use for that in another game.

Again, thanks for all the input guys.


Bt
-----------------------------------
"Enjoy Every Sandwich" - Warren Zevon

http://www.infamous-quests.com

SMF spam blocked by CleanTalk