Hey! My game is a bit hard to write down and long but the thing I need is that I want to teleport it. Basically the Player sprite switches from 1 to 2 and when you switch it I need it to teleport it to the others position for keeping the location of the player. I'm working with a logic which says a given variable = 1 then go with 1 but if it switches to 2 then go with 2. Set position to another object could be good but because variable is constantly equal to 1 or 2 it won't react to controls because it's constantly setting the position to the other sprite. I know it's a bit confusing but I don't know how could I solve it. Thanks for any advice!
It's really hard to understand you..
Is this what you are trying to make?
Simple Teleportation Demo
I shall name this game PORTAL 3!
Yeah that's what I want but not with setting a sprite location to another one beucase it will be stuck. Nice game btw!
Develop games in your browser. Powerful, performant & highly capable.
It doesn't get stuck in my demo. have you tried it?
Yeah I will have to work on it a bit to implement it to my game because it's a bit harder but tahnks for the help!
Not sure if I get what you want, — But it seems to me you want to switch the CONTROLS between two character sprites. Is that right?