Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: edmundito on Sun 22/05/2005 21:46:38

Title: Solved :P : Viewport Questions...
Post by: edmundito on Sun 22/05/2005 21:46:38
I want to ignore the player character's scrolling completely for this thing I'm working on where when I move the mouse to the corner of the screen the character also moves, but I want it to move through setviewports instead of the player character's room-scrolling abilities...

The problem is that they both collide, like I can never lose control of the character's scrolling.
Title: Re: Viewport Questions...
Post by: Pumaman on Mon 23/05/2005 18:46:21
Can you clarify what the problem is? Are you using SetViewport?
Title: Re: Viewport Questions...
Post by: edmundito on Mon 23/05/2005 21:41:25
I'm using setviewport indeed, but the player character's scrolling feature keeps taking over my set viewports anyway. even though I've taken over the viewport...

Now I did a SetViewPort(0,0) on Player Enters Screen and it seems to get rid of the character control...
Title: Re: Viewport Questions...
Post by: Pumaman on Mon 23/05/2005 22:40:30
The viewport lock is released if the room changes -- is this your problem?
Title: Re: Viewport Questions...
Post by: edmundito on Mon 23/05/2005 23:56:03
no, it seems that if I don't force the viewport change from the start of the room, then it wouldn't lock, at least on repeatedly execute for the room.

Edit: Yeah, I got it... I think the scrolling stuff kicks in before repeatedly_execute, so I had to override by having a SetViewport(0,0); in player enters screen so that it ignores scrolling from the start.