heh folks, I got another tricky question for ya:
I want a theoreticly simple thing, but I just can't figure out how to do it:
I want my character to open a door by clicking on it. so far no problem:
I created a object (picture of closed door) and put it over the background at the position, where the background shows an open door.
on
interact object-->
- Character - move character (moves character in front of the door
- character - quick animation (animation how he moves his hand to open the door)
- object - remove an object from the room (lets the closed-door-objekt disappear)
Here comes the problem: when the door is open, I want the player to be able to move my character through the door into the next room.
solutions that didn't work:
1. interact object-->
- Character - move character
- character - quick animation
- object - remove an object from the room
- player - got to a differnt room
(doesn't work, cuz now he enters the next room, just wehen he opens the door. thats not what I want)
2.
interact object-->
- Character - move character
- character - quick animation
- object - remove an object from the room
then a hotspot over the door-region and
interact with hotspot
- player - got to a differnt room
(doesn't work, cuz now I have to use the interact function to walk in the next room. I want it to work with the "walk to-function"
3.
make baseline for top-egde
walk off the top screen edge
player - go to a different room
(doesn't work, cuz now I have to declare a region at the opt of the top-screen-edge as a walkable area and if I do so, the character can walk over the door, what looks really stupid.
has anybody an idea, how I can do this. and pls don't tell me, that there would be an easier way by just use my first solution and just let the caracter enter the room by interacting with the door-object.
I know it works, cuz in zak mc kracken, its done, with just the first door.(the one through which he leaves his sleeping-room)
So, it CAN be done....but how?!
please help
interact object-->
- Character - move character
- character - quick animation
- object - remove an object from the room
the last four rows are senseless, pls ignore, I pasted them and didn't realised that they were still at the bottom of my comment. ;)
How about this:
Draw a seperate walkable area over the open door. Check "Use continous scaling" on this walkable area, set it to zoom level 50%-100% or something.
Draw a region somewhere higher up this walkable area.
On "Player walks onto region" -> "Player - Go to a different room".
Or you could draw a region on the open door area and when the player walks onto it, play a blocking animation of the character going through the door (you could even draw him getting continously darker), then go to a new room.
i already tried that, but i didn't, but 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.
thx at all who tried to help