Character walking off screen code (SOLVED)

Started by rich, Sat 02/12/2006 09:11:37

Previous topic - Next topic

rich

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!
I'm so excited!

fentongames

You need to write the Character.Walk code using all the interiors. In your case it would be:

Code: ags

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);


:)
Time Kid, coming this summer.

rich

Ah!!! eAnywhere. That did it. Thanks a lot for the help!
I'm so excited!

SMF spam blocked by CleanTalk