about screen edges

Started by , Wed 02/07/2003 01:28:38

Previous topic - Next topic

Tharkûn

Hi. Sorry to ask another stupid question, but i'm extremely newby ^^U. The character leaves current room if he touches one of these yellow edges, ok... but if there is, for example, more walkable area above the place you want the character to leave the room, how can I make the character not leave the room? I think I haven't explained it very well (my english isn't very good u_u), so this is the exact situation: there's a house in the street, and the character goes to another room if he reaches the door area; BUT, if he goes up the street to the left of the house, he goes above the house and passes the yellow line, so he would also go into the house... how can I avoid this? Thank you very much for your help.
ByeZ.

saanb

you could put the left screen edge on the left of the house and the right screen edge on the right of the house. or maybe the door. he won't go to another room if he walks pass the screen edge unless you make it that way so it's okay. go to interactions in room settings and go to walk off top screen edge and do go to another room. so the left and right ones don't really matter. i'm not an expert either so that still might not work. maybe to make sure, for walk of left and right screen edge, say do nothing? or you could go all scripty and say if you walk off either the left or right screen edge, change a variable value. then only if the variable was the original value could you go to another room walking off the top screen edge.

MillsJROSS

In this case just forget the screen edges, in this room they aren't helpful. Instead, in the AGSeditor, go to the Roomeditor, the areas tab, and then go to the scroll down bar up top and go to regions. Draw two diffrent regions where you want the character to exit (Before either house door. Make it a couple of pixels thick, and then go to the interactions of each region and select Player walks on to region, then select Player- New room for both regions specifying which room goes where.

-MillsJROSS

Tharkûn

Hi. Thnx a lot again, I'm learning a lot with your help :_)
ByeZ.

SMF spam blocked by CleanTalk