2 WayTeleporter (Solved)

Get help using Construct 2

Post » Thu Jul 12, 2012 8:21 pm

Hi all,

I'm trying to create a teleporter using one object but 2 instances. But it doesn't seem to work, I believe it's because it's teleporting back to the original teleporter after it has teleported. Ive used variables to check which teleporter is which. But I'm still unable to locate the problem.

What needs to happen is anything going in one teleporter needs to come out from the other and vice versa.

Here is the capx http://dl.dropbox.com/u/57137706/teleporter.capx

Thanks for your time everyone.
RockmanZero2012-07-13 12:11:20
B
25
S
161
G
3
Posts: 51
Reputation: 18,702

Post » Thu Jul 12, 2012 10:08 pm

Had a quick look, played around a bit and got the teleporter working one way; then I remembered I recreated a Portal Gun in one of my other games and figured it's pretty much the same principle, so here's the event sheet for that:



I made it before I got my head around variables, so it's not elegant, but it works.

IIRC the last two events should be enough.Mr E Bear2012-07-12 22:10:50
B
49
S
14
G
3
Posts: 540
Reputation: 5,611

Post » Thu Jul 12, 2012 10:41 pm

Mr E Bear,

I think you've forgotten to include the file as I don't see any image or link.
B
25
S
161
G
3
Posts: 51
Reputation: 18,702

Post » Thu Jul 12, 2012 10:57 pm

I have no .capx to post, but the image of an event sheet from a different project can be found here: http://i.imgur.com/mNMSn.png

It was hotlinked above, but appears to have not displayed properly if you can't see it. It's a simple two event solution using collisions.
B
49
S
14
G
3
Posts: 540
Reputation: 5,611

Post » Thu Jul 12, 2012 11:03 pm

I can see it now thanks, ah I see you move the teleported object so it don't collide with the other teleporter. Thanks that something I did not think of. I'll give it a try.
B
25
S
161
G
3
Posts: 51
Reputation: 18,702

Post » Fri Jul 13, 2012 12:48 am

I just used a boolean to stop it teleporting more than once:
teleporter.capx (r99)
B
54
S
28
G
18
Posts: 1,520
Reputation: 25,020

Post » Fri Jul 13, 2012 12:10 pm

Many thanks Ramones, that works perfectly.
B
25
S
161
G
3
Posts: 51
Reputation: 18,702

Post » Fri Jul 13, 2012 9:03 pm

Awesome, thanks!
B
2
Posts: 1
Reputation: 427


Return to How do I....?

Who is online

Users browsing this forum: DemantDigitalArt, Google [Bot], Lancifer and 22 guests