How do I overlap at a specific image point

Get help using Construct 2

Post » Fri Oct 31, 2014 7:57 pm

I got Spear and Monster

Spear has an imagepoint called "Impact"

i got this event:

Player attack triggers:
-Spear is overlapping monster -> monster gets dmg

I want that that last condition only triggers if spear Imagepoint "Impact" is inside Monster collision sprite, how can i archive that?

Thanks!
B
66
S
22
G
4
Posts: 360
Reputation: 6,584

Post » Fri Oct 31, 2014 8:13 pm

Two ways I can think of:

1. Have a small, invisible sprite constantly positioned to the spear's "Impact" image point and check for collisions with that instead of the spear itself.

2. Use the System object's "Pick overlapping point" condition to pick all monster objects for whom a spear object's image point is overlapping them.
Moderator
B
113
S
41
G
20
Posts: 1,586
Reputation: 19,126

Post » Fri Oct 31, 2014 8:17 pm

Thanks, the second worked like a charm ;)
B
66
S
22
G
4
Posts: 360
Reputation: 6,584


Return to How do I....?

Who is online

Users browsing this forum: dop2000, draiza, Yahoo [Bot] and 12 guests