Wintermute Engine Forum

Wintermute Engine => Technical forum => Topic started by: piere on October 22, 2012, 11:55:19 AM

Title: Windows not working with scrolling screen.
Post by: piere on October 22, 2012, 11:55:19 AM
Hi guys, I searched the forums and could not find this issue so hopefully you can help me. I am making an game that scrolls when the character walks to a certain point. The default Game resolution is 1024x768. When the character moves and the screen scrolls the window will not follow the character past the Game resolution., I did a Game.Msg command and it always says that the .X and .Y coordinates are to the Games coordinates and not the scene's coordinates. So the mouse scene X coordinate will be 1300 and the window will be something like 500. Im trying to make the window follow the actor but this will never happen because of this issue. Any suggestions? Thanks

Oh and here is my looping code:

while(true)
{
thoughtbubbleWindow.X=actor.X;
thoughtbubbleWindow.Y=actor.Y;
Sleep(10);
}
Title: Re: Windows not working with scrolling screen.
Post by: piere on October 23, 2012, 05:51:49 AM
any ideas anyone?
Title: Re: Windows not working with scrolling screen.
Post by: eborr on October 23, 2012, 10:47:50 AM
I would not have used a window for this purpose, I think that creating a dynamic entitiy and attaching it to the in some way would have been the approach I adopted
Title: Re: Windows not working with scrolling screen.
Post by: piere on October 23, 2012, 11:00:34 AM
For my purposes it needs to be a window. An entity won't work   :'(  :'(  :'(
Title: Re: Windows not working with scrolling screen.
Post by: ciberspace on October 24, 2012, 04:05:21 PM
Game.Msg(Scene.OffsetX + (1024/2));