Ok, I studied tutorials very hard these last days, and I was successful in battles like creating a Lucas-style GUI all by myself. But I still don't realize what's the best way to handle a stupid door! Simply, a door that you can open and that will lead you to another room.
Well, I use two objects: closed door and open door (is it good?).Ã,Â
Then I set the closed door to disappear when interacted and make the open door appear.
Now comes the problem. In your games, which event triggers the transition?
I want the player to "walk to door", once it's open, to leave the current room.
I use the "any click on object" interaction, the action I put in is: if cursor mode is 0Ã, Ã, then change room. But it doesn't seem to work at all. why?
I tried with regions too: the transition works but it happens as soon as you open the door (=not the way I want).
The second great question isÃ, ;D : I'm calling my next game "Jimmy Nand vs. The Evil Dr. Xor". Is it correct, or I should remove that "The" ? ???
Thank you!
ByeÃ, ;)
Whoops!
I found the other thread posted just a few time ago (I made the search today, when it wasn't posted yet!), asking about entering an open door. If you want to answer the door question, do it there:
http://www.agsforums.com/yabb/index.php?topic=17551.0
However, I STILL have problems with my title! "The" or not "The"? ;D
with or without the "the" is ok. It depends whether his name is "evil Dr. Xor" (in that case no "the") or if he is an evil doctor named "Xor" (use "the")
i figured the best solution out later last night:
draw a second walkable area. go to
room settings set the top edge of the screen right at the bottom of the door. than
-->interaction editor
walk off top screen edge
- player - go to different room (2)
(first time) player enters the screen
- run script
script:
"
{
RemoveWalkableArea(2); }
"
objects --> interactions:
- Character - move character
- character - quick animation
- object - remove an object from the room
- run script:
script:
"
{
RestoreWalkableArea(2);
}
"
description:
now when the player enters the room (for the first time) the walkable area 2 is disabled and after the player opend the door, the interactions of the object cause the restoring of the second walkable area. when you walk on that area you cross the top edge of the screen, leave room 1 and enter room2.
thanks at all who tried to help