Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Sat 26/08/2006 18:43:54

Title: mousescrolling
Post by: on Sat 26/08/2006 18:43:54
I created a large room (900x1000 pixel).
The Player should scroll through the whole room
Quote
SetViewport(mouse.x ,mouse.y);
mouse.SetBounds(0, 0, 0,0);

But I can just scroll through a quarter of the room...
Title: Re: mousescrolling
Post by: SSH on Sat 26/08/2006 18:53:12
Since mouse co-ords will only go up to 320x240 then a quarter sounds about right. You need to add in a scaling factor...
Title: Re: mousescrolling
Post by: on Sat 26/08/2006 19:20:52
Okay, and how can I add a scaling factor?
Title: Re: mousescrolling
Post by: Maverick on Sun 27/08/2006 09:19:48
If I'm not mistaken the room should scroll by itself when the character gets close to the edge but if you want to scroll without moving the character then take a look at this (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=14970.0) thread