Can I select "On collision with [All objects]" instead of ?

Get help using Construct 2

Post » Tue May 17, 2016 1:37 pm

Currently this is how I have

Image

I want the collision to be on multiple objects, is there a way to pick more than just 1?

I tried "Collision enabled" and then I got stuck at start (touching myself?)


or do I have to add a event for every object? (will be like 7 events)
Last edited by Triforce on Tue May 17, 2016 1:42 pm, edited 1 time in total.
B
21
S
9
G
8
Posts: 188
Reputation: 6,069

Post » Tue May 17, 2016 1:41 pm

TiledBackground? Are you using only 1 TiledBackground object and extend it long? In that case, you will still have only 1 TiledBackground to collide with.

Can you tell us your big picture? What are you trying to achieve?
I got a game that you multiply, breath fire with two heads and brawl foes to oblivion with your clones: http://www.newgrounds.com/portal/view/660664 (use Chrome on Windows for best performance)

My sites:
http://twinblazar.deviantart.com
http://twinblazar.newgrounds.com
https://twitter.com/twinblazar
http://www.pixiv.net/member.php?id=15072448
B
30
S
11
G
11
Posts: 411
Reputation: 8,469

Post » Tue May 17, 2016 1:43 pm

Ok download my full game capx file, it will have that and more stuff your probably wanting. I code cleanly so you should have no problem looking through it. If you have any question about my example just ask!!


https://www.scirra.com/tutorials/5343/h ... -game-capx
Check out my awesome Android Game releases https://play.google.com/store/apps/deve ... ames&hl=en
B
38
S
18
G
24
Posts: 682
Reputation: 16,635

Post » Tue May 17, 2016 1:44 pm

TwinBlazar wrote:TiledBackground? Are you using only 1 TiledBackground object and extend it long? In that case, you will still have only 1 TiledBackground to collide with.

Can you tell us your big picture? What are you trying to achieve?



I am having a blood effect when the "Hero" (main character) dies,

Which makes blood explode in a circle around him, and it stops at objects hit, (Only objects that is touchable)

I have multiple tiled backgrounds (5 of them) (I have been lazy and not named them anything as they are only platforms with solid behavior)

Then looking at enemies around me as objects aswell
B
21
S
9
G
8
Posts: 188
Reputation: 6,069

Post » Tue May 17, 2016 2:03 pm

Use a family.
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Tue May 17, 2016 2:15 pm

I agree with @99Instances2Go, use families, its a group of objects.

https://www.scirra.com/manual/142/families
B
11
S
3
Posts: 16
Reputation: 768

Post » Tue May 17, 2016 2:15 pm

99Instances2Go wrote:Use a family.


Wow how have I not noticed that option, thanks so much!

Problem solved!
B
21
S
9
G
8
Posts: 188
Reputation: 6,069

Post » Tue May 17, 2016 2:16 pm

celoko wrote:I agree with @99Instances2Go, use families, its a group of objects.

https://www.scirra.com/manual/142/families


Yeah I didn't even knew that feature existed, problem solved!

Thanks guys
B
21
S
9
G
8
Posts: 188
Reputation: 6,069


Return to How do I....?

Who is online

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