Rippley
Member
I want to make a portal, and what I did was make portal_1 and portal_2 and in each one put the variable "portal" that would be defined manually. And with that, I want to make that when the player collided with portal_1, it would go to portal_2 with the same variable.
Ex: Portal_1 with the variable "portal" = 2, would go to portal_2 with the variable "portal" = 2
The problem is that I can't tell the gamemaker that I want it to teleport the player to the portal coordinates with the variable equal to the input.
What goes through my mind is something I don't even think you can do, which would be: collided with portal_1: player.x = portal_2.x(portal = 1)
I use google translate, but i hope you can understand
Ex: Portal_1 with the variable "portal" = 2, would go to portal_2 with the variable "portal" = 2
The problem is that I can't tell the gamemaker that I want it to teleport the player to the portal coordinates with the variable equal to the input.
What goes through my mind is something I don't even think you can do, which would be: collided with portal_1: player.x = portal_2.x(portal = 1)
I use google translate, but i hope you can understand