character transfer to another part of screen (SOLVED)

Started by sloppy, Mon 10/04/2006 00:02:51

Previous topic - Next topic

sloppy

All I want to do is have the character go in a door on the screen and come out another door on the other side of the same background.

Ashen

So what's the problem?
You can use player.ChangeRoom(...) to change the character's location without actually changing room, or you can just directly alter their x and y properties. Or you might find you get a better effect moving the character to room -1 (player.ChangeRoom(-1)) then bringing them back at the new coordinates (with any animations - dorrs opening/closing etc - you want).
I know what you're thinking ... Don't think that.

sloppy

Okay, but when I do a change room, I get a fade in and out.  Is there a way to eliminate the fade?

Gilbert

It won't do that if that character is not the player. However, as Ashen mentioned, you may just adjust the character's x and y properties instead:
player.StopMoving();
player.x = 100;
player.y = 70;

sloppy

I wasn't aware of that command.  Thanks, it worked.

Ashen

You could also use SetNextScreenTransition(..) and temporarily change the style to eTransitionInstant, to remove the fade.
I know what you're thinking ... Don't think that.

SMF spam blocked by CleanTalk