Solved :P : Viewport Questions...

Started by edmundito, Sun 22/05/2005 21:46:38

Previous topic - Next topic

edmundito

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.

Pumaman

Can you clarify what the problem is? Are you using SetViewport?

edmundito

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

Pumaman

The viewport lock is released if the room changes -- is this your problem?

edmundito

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

SMF spam blocked by CleanTalk