mousescrolling

Started by , Sat 26/08/2006 18:43:54

Previous topic - Next topic

RobinMasters

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...

SSH

Since mouse co-ords will only go up to 320x240 then a quarter sounds about right. You need to add in a scaling factor...
12

RobinMasters

Okay, and how can I add a scaling factor?

Maverick

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 thread

SMF spam blocked by CleanTalk