Collision problem

Get help using Construct 2

Post » Mon Aug 20, 2012 8:26 am

Hi! I have a dummy problem - i want to do like this - when two objects collide with each other, there is some event - if not, then nothing happens. Sorry for my english. Thanks

https://www.dropbox.com/s/2rbicvp9ba9czno/collision.capx
B
16
S
6
Posts: 3
Reputation: 2,099

Post » Mon Aug 20, 2012 6:51 pm

Hey AK,

I just took a look at your cap, you just need one event.

Object1 on collision with Object2 -> do what you would like.

If they never collide the event will never happen.

Have a look at some of the examples in your C2 folder for how platform behaviour and other simple features work and you will be well on your way to making your first game.
ImageImage
B
73
S
16
G
6
Posts: 1,038
Reputation: 10,473

Post » Mon Aug 20, 2012 7:57 pm

Yep, i'd try it, but it doesn't work too.
B
16
S
6
Posts: 3
Reputation: 2,099

Post » Tue Aug 21, 2012 1:01 pm

Ok, but if wnt to do collision and some event with 8-dir behavior?
B
16
S
6
Posts: 3
Reputation: 2,099

Post » Tue Aug 21, 2012 1:07 pm

When testing for a collision it tests for the sprites touching one another - it doesnt matter if you use any type of behaviour, so long as those sprites are included in the collision event it will occur.GenkiGenga2012-08-21 13:08:19
ImageImage
B
73
S
16
G
6
Posts: 1,038
Reputation: 10,473


Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go and 21 guests