Global Player Traveling to Other Layout Problem

Get help using Construct 2

Post » Tue Dec 02, 2014 8:31 pm

travel 2.png


This is the event and those are the actions that handle setting the player's position when he enters a new layout.

It works fine for layouts that are the same height, it becomes completely useless when the layouts are not the same height.

I.e. I have two layouts that, one is 256x896y. Two is 256x224y. I have a door at the bottom of One, x8 y640. That door leads to Two, where the door is at x256 y192. When the player enters the door at One, he's supposed to end up at Two with the same X, Y position. Minus 35 in the X so the player is in front of the player.

What happens however, is that the player spawns in the utter lower left corner, bugged into the wall.

But that doesn't happen is I set the door to the same X, Y position.

I've tried nullify the player's position, remove the Door's position so that the player's position is set to only the offset which is controlled by an instance variable but nothing works.

It's driving me mad, I've been swearing at my computer for the last 3 hours.

Can anyone help me with a fix for this? Or come up with a different way to travel between layouts.
I really need help with this.
You do not have the required permissions to view the files attached to this post.
The moderators are corrupt and ban for no reason, especially that condescending neckbeard asshole Kyatric. The forums are filled with fanboys.
Banned User
Posts: 558
Reputation: 2,925

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 48 guests