How do I have a camera follow a newly spawned character?

Get help using Construct 2

Post » Sun Sep 06, 2015 7:09 pm

Essentially, I want to follow the average of multiple targets on screen, one of which is a character (P1 for the sake of example) that dies, is destroyed, and recreated. P2 is also using the same character, but does not die during this process. Before and after respawning P2 is detected while moving the camera but P1 is no longer detected after respawning. I assume this has to do with UID but I do not know how to fix this.

I have created a test capx that will simulate what I believe to be the important factors of this interaction:
https://www.dropbox.com/s/ywphg1n9rfexg ... .capx?dl=0

Thank you in advance
B
6
S
1
Posts: 8
Reputation: 643

Post » Sun Sep 06, 2015 7:55 pm

Create variable "ID" for Player object and change it to make difference between two same objects.
B
6
Posts: 11
Reputation: 280

Post » Sun Sep 06, 2015 8:57 pm

Thanks, I didn't realize in my initial program that P2 was not affecting the process since it spawned initially in the same place. Now I realize that I have to add an additional parameter to make it detected by the camera.
B
6
S
1
Posts: 8
Reputation: 643


Return to How do I....?

Who is online

Users browsing this forum: facecrime, odiusfly and 14 guests