How do I make my player the only one?

Get help using Construct 2

Post » Sun Apr 09, 2017 7:04 am

Hello, i have a problem.
I'm making a top-to-down game.
I have to make a system where the player enters in a house, then go to another layout, where the house is, then get out of the house.
But, when i enter the house and get out, two errors happen:
1 - The text "[Press Space to Open Door]" Doesnot appear anymore (after the first time)
2- My player is multiplied, he spawns in the place where he first spawn when the game is started, and in the position next to the door of the house he just ot out, and if i enter the house, he's multipied again.
what do i do to this do not happen?
B
11
S
2
Posts: 11
Reputation: 601

Post » Sun Apr 09, 2017 9:17 am

Check you events again.
You must have a "on start of layout | create character at x,y" in there somewhere.

If you still have problems, a workaround would be to destroy all instances and recreating one on start of layout.

On Start of Layout |
> Destroy Char
> Creater Char @ x,y...
Image Image Image
B
32
S
12
G
27
Posts: 761
Reputation: 17,244

Post » Tue Apr 11, 2017 11:38 am

Or, you made the Player Sprite global and you have it present in each layout.
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 3 guests