Please login or register.

Login with username, password and session length
Advanced search  

News:

For WME related articles and tutorials visit WME Resource Center.

Author Topic: Windows not working with scrolling screen.  (Read 1604 times)

0 Members and 1 Guest are viewing this topic.

piere

  • Supporter
  • Frequent poster
  • *
  • Karma: 4
  • Offline Offline
  • Posts: 301
  • Sorry for any bad english in my posts. Game on !
    • View Profile
Windows not working with scrolling screen.
« 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);
}
Logged

piere

  • Supporter
  • Frequent poster
  • *
  • Karma: 4
  • Offline Offline
  • Posts: 301
  • Sorry for any bad english in my posts. Game on !
    • View Profile
Re: Windows not working with scrolling screen.
« Reply #1 on: October 23, 2012, 05:51:49 AM »

any ideas anyone?
Logged

eborr

  • Regular poster
  • ***
  • Karma: 4
  • Offline Offline
  • Posts: 194
    • View Profile
Re: Windows not working with scrolling screen.
« Reply #2 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
Logged

piere

  • Supporter
  • Frequent poster
  • *
  • Karma: 4
  • Offline Offline
  • Posts: 301
  • Sorry for any bad english in my posts. Game on !
    • View Profile
Re: Windows not working with scrolling screen.
« Reply #3 on: October 23, 2012, 11:00:34 AM »

For my purposes it needs to be a window. An entity won't work   :'(  :'(  :'(
Logged

ciberspace

  • Regular poster
  • ***
  • Karma: 1
  • Offline Offline
  • Gender: Male
  • Posts: 116
    • View Profile
    • Tele Juego
Re: Windows not working with scrolling screen.
« Reply #4 on: October 24, 2012, 04:05:21 PM »

Game.Msg(Scene.OffsetX + (1024/2));
 

Page created in 0.21 seconds with 24 queries.