How do I teleport my sprite to a given location?

Get help using Construct 2

Post » Tue Sep 05, 2017 3:42 pm

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! :)
B
4
Posts: 10
Reputation: 229

Post » Tue Sep 05, 2017 4:33 pm

It's really hard to understand you..
Is this what you are trying to make?
Simple Teleportation Demo
CAPX file

I shall name this game PORTAL 3! :)
Check out my awesome game Doptrix
B
17
S
9
G
30
Posts: 525
Reputation: 17,349

Post » Tue Sep 05, 2017 4:54 pm

Yeah that's what I want but not with setting a sprite location to another one beucase it will be stuck. Nice game btw! :D
B
4
Posts: 10
Reputation: 229

Post » Tue Sep 05, 2017 4:58 pm

It doesn't get stuck in my demo. have you tried it?
Check out my awesome game Doptrix
B
17
S
9
G
30
Posts: 525
Reputation: 17,349

Post » Tue Sep 05, 2017 6:18 pm

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! :D
B
4
Posts: 10
Reputation: 229

Post » Tue Sep 05, 2017 6:24 pm

Not sure if I get what you want, @gyurto. But it seems to me you want to switch the CONTROLS between two character sprites. Is that right?

Cheers.
Bruno

I like to eat, but I'm no cook. Why liking to play games would make you a game designer?
B
19
S
5
G
2
Posts: 538
Reputation: 3,243


Return to How do I....?

Who is online

Users browsing this forum: Blendi1223, jatin1726, Kyatric and 23 guests