how to teleport a sprite to a new room in game maker studio 2 how to teleport a sprite to a new room in game maker studio 2

The solution for “how to teleport a sprite to a new room in game maker studio 2 how to teleport a sprite to a new room in game maker studio 2” can be found here. The following code will assist you in solving the problem.

TargetRoom = rm_House;//Change this to the room you want to go
Targetx = 125;//Change this to where you want your player to spawn when he enters the room
Targety = 125;//Change this to where you want your player to spawn when he enters the room
room = other.TargetRoom;
x = other.Targetx;
y = other.Targety;

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

0
inline scripts encapsulated in