If object is destroyed, other object destroys too.

For questions about using Classic.

Post » Mon May 28, 2012 5:35 pm

I have 2 objects - player base and player. Player object is always at player base's position. player base have private variable - hp. How do I do so. If player base's hp=0,both object destroys?
B
11
S
3
G
6
Posts: 193
Reputation: 4,234

Post » Mon May 28, 2012 5:53 pm

Already tried the container object? If both are in one container, both should be destroyed.

The other way is like you already discribed. If private variable 'hp' is 0, then destroy "object".zyblade2012-05-28 17:54:54
B
24
S
9
G
2
Posts: 294
Reputation: 3,160


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 0 guests