Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: miguel on Mon 12/05/2003 00:28:42

Title: player character enables scroll?
Post by: miguel on Mon 12/05/2003 00:28:42
is the player character what triggers the room scroll? if it is, then, if I change its view I can have a scrolling room with any sprite I want to use?
thanks
Title: Re:player character enables scroll?
Post by: scotch on Mon 12/05/2003 00:43:03
What?  it sounds like you are basically asking if you change your players view will it still scroll.. to which the answer is yes.. but that's pretty obvious.
Title: Re:player character enables scroll?
Post by: miguel on Mon 12/05/2003 00:57:45
Scotch: I didn´t explain myself very well then.
what I mean is, IF the main char isn´t on the room, will other character make the room scroll?

and another thing, what may look pretty obvious to you doesnt mean it is for me, I use AGS for the fun of making my stupid little games wich I like and so far I haven´t been incorrect or told anybody if he/she was beeing obvious or not
Title: Re:player character enables scroll?
Post by: scotch on Mon 12/05/2003 01:05:36
How do you get to a room and have the main character in a different one?  I thought the main character was always in the room.

Are you asking then if the screen will follow another character if you change player characters?  Basically the game scrolls so the main character is in the centre unless you've used SetViewport, if you change main characters then the game with follow the new one.

I am still not entirely sure what you're asking but I hope that explains it.
Title: Re:player character enables scroll?
Post by: RickJ on Mon 12/05/2003 08:08:53
QuoteIF the main char isn´t on the room, will other character make the room scroll?
Scotch is right,  the room displayed on the screen is the one where the player character is at.  

Please don't feel like Scotch was picking on you Miguel, because when I read his reply what I understand is that he is trying to  help you but is unsure if he understands the question.  So his comment "but thats pretty obvious..."  means that he doesn't think he answered your question adequately.  :)  
=====

Are you trying to use this for something or are you just curious about it?    
Title: Re:player character enables scroll?
Post by: Ishmael on Mon 12/05/2003 14:05:08
Btw. the player char aint allways in the displayed room... I ones did this: character[EGO].room=3 and the game was in room 1, and when I clicked the walk mode, I got an error saying "can't move character because character is in another room" or somthing...
Title: Re:player character enables scroll?
Post by: miguel on Mon 12/05/2003 16:09:01
"Please don't feel like Scotch was picking on you Miguel",-  SORRY Scotch, I was on a bad mood and Im really stupid and very slow with AGS.

RickJ: Yes I am using this, the thing is, I normaly have scrolling rooms on my projects but I always have ROGER set to visible. When I tryed to make a scrolling room with a spaceship flying from on side to the other, I set ROGER to be invisible on the editor and did the move character command (for the spaceship) but it didn´t scroll, the spaceship just disapears out of sight.
Maybe the problem is not ROGER visibility but then that´s why I posted in the first place
thanks
and sorry again SCOTCH

EDIT: now I know that only the player character scrolls rooms, I changed ROGER view to a spaceship instead of having a spaceship character. yes it was easy
Title: Re:player character enables scroll?
Post by: RickJ on Mon 12/05/2003 17:15:26
TK: I didn't think of that, but your'e right.  I suppose that's Miguel was doing to dissapear Roger from the screen.  The whole discussion makes more sense now.