Teleporting to another room location

Started by Granknight, Sat 13/01/2007 15:55:00

Previous topic - Next topic

Granknight

my character is on a walkable place, separed from it there is another walkable place (unreachable by eachother) like this: (ignore the ".")
[2].....[^^^^^]
.........[.............]
[^^^ .......1.....]
[___________]

how do i make the character teleport from walkable zone 1 to 2, by running an interaction?
There is only "move character wich seems wanting to help me but it's not enough.
How di I do?

Akatosh

Welcome to the forums. Before I answer your question, please do the following when you ask your next question:

1.) Post a screenshot instead of unreadable ASCII "art".
2.) Check your spelling.
3.) Write proper english.

Now your answer: You can directly manipulate x and y co-ordinates of your character via a script.

Code: ags

cEgo.x= //your target x
cEgo.y= //your target y

Khris

Not everybody is able to write perfect, flawless English like you, Akatosh.
And you didn't answer the question properly.

Granknight:
It should work with the "Player - Go to a different room (at specific co-ordinates)" action, just enter the current room as the new room and the new co-ords.

Da_Elf

if there are actions happening in that room wouldnt a change of rooms (even to the same one) reset the actions?

Akatosh

My English isn't perfect and flawless. I just object to other's language flaws ;D

@KhrisMUC: Of course, that would be much "easier". Why take the easy way when there's a hard one?

Khris

Da_Elf:
No. AFAIK, a ChangeRoom to the current one will only teleport the player.
By "actions", you mean things that happened in the room before, right?
So, even if it was handled as a change of rooms by AGS, why would those get reseted?

Akatosh: I don't think any of the two ways is considerably easier than the other. And Granknight asked for a interaction editor action, not for RunScript stuff.
(Although I'm sure we agree that it's never too early to start learning the script language :))

Granknight? Did it work?

SMF spam blocked by CleanTalk