Additive Size for objects

Get help using Construct 2

Post » Tue Sep 08, 2015 1:57 am

So, I've been playing around making a game based on planets and gravity, in wich you have to collide a bunch of asteroids together to make a bigger one and then throw it on the other planets.
The thing is, I'm having a hard time trying to tell Construct 2 to add the correct size to the correct asteroid, here is how it should work:

-When 2 asteroids collide, it compares their sizes;
-The smaller one is destroyed;
-The bigger one has the smaller one's size added to him.

So far it works, but when an smaller astroid hits a bigger one, it is random wich one of them will be destroyed. I've aready tried using a variable for size on every asteroid, and then using it to compare the size, but it didn't work since I can't specify wich asteroid I want it to compare. So the main goal here is doing that.

Please reply if you find a way to program this : )
B
6
S
2
Posts: 2
Reputation: 521

Post » Tue Sep 08, 2015 3:31 am

Are you using "Pick by Evaluation" and selecting the larger one that way? That seems like it should work.

If you are just doing a system compare, it doesn't pick.
B
240
S
62
G
33
Posts: 903
Reputation: 40,589


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 24 guests