How do I Transfer an object (player) to a different layout

Get help using Construct 2

Post » Fri Oct 24, 2014 10:07 pm

Message: Gatleonhart is not yet permitted to post plain text URLS (300 rep required). 1 URLS removed. Why?
My game is a side scrolling adventure/rpg. Similar to Illusia (mobile game on ios and google play) , and I thought it would be a simple task but I can't figure it out on my own for the life of me so I've been placing the object (player) on every layout.

The problem with that is that once you go back, the object (player) is in the same position it was from when you started the previous layout (level area).

Couldn't seem to find rules for the forums so don't know if links were allowed, but, the early parts of my game are here:WARNING - the game has strong adult language and is meant to be satirical/funny not offensive, click at your own risk. If you click the link, you agree to the warning. Anyway, if there's a simpler way to do this I'm all ears. Otherwise I'm at a loss :(

Thanks guys! (I'm new ps, good to be a part of it!)
Last edited by Gatleonhart on Fri Oct 24, 2014 10:13 pm, edited 1 time in total.
Posts: 8
Reputation: 216

Post » Fri Oct 24, 2014 10:11 pm

Ah rep's too low, either way I'm sure you can imagine what I'm trying to do here...
Posts: 8
Reputation: 216

Post » Sat Oct 25, 2014 2:31 pm

*Engages phone typing*

So what you need to do is create a new event sheet, place global variables related to the position and layer of where you want to place the character, and then "include" that sheet every other level sheet.

When said character encounters an object to transition to the next map, set the sheet variables to reflect the position of the character on the next map, and then transition.

When loading the next layout, place the character appropriately using the sheet variables.

Posts: 633
Reputation: 30,836

Post » Sun Oct 26, 2014 7:44 am

Thanks for the response! I kinda figured using variable was the only "successful" way of doing this. Guess it's time to read more on variables.

Posts: 8
Reputation: 216

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 23 guests