Keeping player position

Get help using Construct 2

Post » Wed Dec 11, 2013 7:35 pm

I can't seem to find a good example of this on the forums.

If I have a player sprite, that exits one side of the screen (in this case, say the left side) to travel to a new layout, is there anyway that I can make sure when he goes to the next layout that he keeps the same Y (or x) position from the previous layout?
B
4
Posts: 78
Reputation: 606

Post » Wed Dec 11, 2013 8:02 pm

Just save the X and Y position when you change the layout.
And then when you start the new layout set the position of your player to the saved values.

Something like this:
.capx
B
20
S
6
G
4
Posts: 347
Reputation: 4,451

Post » Wed Dec 11, 2013 8:31 pm

Awesome! Easier than I thought! Thanks so much!
B
4
Posts: 78
Reputation: 606


Return to How do I....?

Who is online

Users browsing this forum: totoe and 28 guests