Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: rich on Sat 02/12/2006 09:11:37

Title: Character walking off screen code (SOLVED)
Post by: rich on Sat 02/12/2006 09:11:37
How might I have a character actually walk off screen? By this, I mean show them walking beyond the boundries of the screen as they exit.

Right now, I have a .walk command that goes beyond the boundry of the screen. For example, a y coordinate of 250 where the screen ends at 200. Then, I do a changeroom command on them. It doesn't seem to work however. They walk to the edge of the screen and then simply disappear. This isn't exactly what I want. I know it can be done because I've seen it other games.

Any advice would be greatly appreciated. Thanks!
Title: Re: Character walking off screen code
Post by: fentongames on Sat 02/12/2006 10:25:41
You need to write the Character.Walk code using all the interiors. In your case it would be:


c(the name of the character).Walk(int x, 250, eBlock,Ã, eAnywhere);
c(the name of the character).ChangeRoom(int room, optional int x, optional int y);


:)
Title: Re: Character walking off screen code
Post by: rich on Sat 02/12/2006 10:40:13
Ah!!! eAnywhere. That did it. Thanks a lot for the help!