Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: LRH on Thu 02/04/2009 01:18:27

Title: Very strage changeroom problem
Post by: LRH on Thu 02/04/2009 01:18:27
Every time I use cEgo.changeroom (cEgo is my player character) the player is transported to the next room, but then, uh oh, the player is invisible and unable to move! Am I missing something simple? I even tried changing the optional x and y to see if the player was at least actually being loaded, and it IS because the camera focuses on the x and y typed in every time.
Any help is appreciated, thanks!
Title: Re: Very strage changeroom problem
Post by: RickJ on Thu 02/04/2009 01:29:44
There is a check box in the room editor pane labeled something like "Make Player Characcter Visible/Invisible".  Perhaps the check box is in the wrong state?
Title: Re: Very strage changeroom problem
Post by: LRH on Thu 02/04/2009 01:34:44
Quote from: RickJ on Thu 02/04/2009 01:29:44
There is a check box in the room editor pane labeled something like "Make Player Characcter Visible/Invisible".  Perhaps the check box is in the wrong state?

Nope.Thanks for the suggestion, but ShowPlayerCharacter is set to true. huh.... ?_?
Title: Re: Very strage changeroom problem
Post by: LRH on Thu 02/04/2009 01:56:11
Update: This is getting even more strange. Using cEgo.ChangeRoomAutoPosition works, but then I cannot position the character the way I would like to.. ugh...
Title: Re: Very strage changeroom problem
Post by: Ethan D on Thu 02/04/2009 01:57:48
Are you sure the only code your using is changeroom, and is it possible the character is accidently behind a walkbehind or a large object?  I dont see any reason why the character could become invisible by itself.
Title: Re: Very strage changeroom problem
Post by: LRH on Thu 02/04/2009 02:03:16
Quote from: Float On on Thu 02/04/2009 01:57:48
Are you sure the only code your using is changeroom, and is it possible the character is accidently behind a walkbehind or a large object?  I dont see any reason why the character could become invisible by itself.

Well, here's the thing. I just tried cEgo.changeroom (room#) without the optional x and y, but now it works! He's not in the right place, but it worked. However, when I input an x and y for him to appear on, he doesn't. how can I fix this?
Title: Re: Very strage changeroom problem
Post by: Ethan D on Thu 02/04/2009 02:33:00
Does he only disappear when he is in a particular x,y location or no matter where he is when you are using the optional x,y coordinates.
Title: Re: Very strage changeroom problem
Post by: Ultra Magnus on Thu 02/04/2009 02:54:52
My guess is that you're using low-res coordinates in a high-res game.
Your character is being drawn off-screen.

Try halving the optional x and y (i.e. if you want your guy at 400,200 put in 200,100 instead).

If that works, there's an option in the game settings window that you need to change.
Can't remember what it's called off-hand, but you'll know it when you see it.
Title: Re: Very strage changeroom problem
Post by: LRH on Thu 02/04/2009 03:21:03
Quote from: Ultra Magnus on Thu 02/04/2009 02:54:52
My guess is that you're using low-res coordinates in a high-res game.
Your character is being drawn off-screen.

Try halving the optional x and y (i.e. if you want your guy at 400,200 put in 200,100 instead).

If that works, there's an option in the game settings window that you need to change.
Can't remember what it's called off-hand, but you'll know it when you see it.

Thank you sir, you are correct. Works fine now.