Queries, oh oh queries, ah ah queries.

Get help using Construct 2

Post » Fri Oct 12, 2012 3:21 pm

Hello again. I have 2 queries. One of them is really simple, but I am unable to figure it out... the other one is simple too I guess.

#1: I have set the Layout size to 1280x1024 and have placed Objects. I can see a square inside the layout that shows what will be shown on screen. How can I increase the size of that? I want to increase it to display complete 1280x1024 when I press Play.

#2: I have four types missiles, four types planes and four types of bullets. If any missile hits any plane, both the missile and the plane gets destroyed. Currently, I have made different events for these.
Ex:
Missile01 -> On Collision with Plane01 -> Missile01 Destroy, Plane01 destroy.
Missile01 -> On Collision with Plane02 -> Missile01 Destroy, Plane02 destroy.
and so on...
Is there a way that I can use: if 'any missile' hits 'any planes' both missiles and planes get destroyed? All the missiles and planes are unique objects and not different instances of the same object.

I am using same long process even for bullets, but with a variation:
Bullet01-> On Collision with Missile01 -> Bullet01 Destroy, Missile01 destroy.
Bullet01-> On Collision with Missile02 ->Bullet01 Destroy, Missile02 DOES NOT destroy.
and so on...
Is there a shorter way where I can use: If bullet01 collides with missile01, both gets destoryed, else if it hits other missiles, only the bullet gets destroyed, but missiles continue on their path?

Thanks!
B
5
S
1
Posts: 38
Reputation: 839

Post » Fri Oct 12, 2012 4:36 pm

#1 In the Projects window, click on your project folder then in the Properties window under Project Settings, change Window Size

#2 Use Families - https://www.scirra.com/manual/142/families - create one for Missiles and one for Planes then make events like you did before, but use the families instead of individual objectsOddConfection2012-10-12 16:37:20
Vote for all the Construct 2 games on Steam Greenlight - Find them here
B
27
S
7
G
4
Posts: 313
Reputation: 4,926

Post » Fri Oct 12, 2012 7:09 pm

Thanks! Got it! :)
B
5
S
1
Posts: 38
Reputation: 839


Return to How do I....?

Who is online

Users browsing this forum: GUN and 20 guests