Get the X and Y of a collision point

Discussion and feedback on Construct 2

Post » Tue May 31, 2016 9:52 am

R0J0hound wrote:@Zebbi
The collision polygon isn't accessible from just events. That said, you can manually put the collision point locations in an array or something and just reference that instead. Or you can use a tiny sprite to find the collision shape by moving over an area and checking for collision.


I think that's pretty good.

Set yourself some image points in the sprite.
Check if collision sprite player with tilemap.

If have a collision, placed a small sprite in every image point and check if collision occurs tilemap at that point, then you get that image points have collision.
B
29
S
12
G
20
Posts: 756
Reputation: 13,855

Post » Tue May 31, 2016 3:59 pm

Probably using the collision polygon.
B
91
S
31
G
103
Posts: 5,235
Reputation: 67,756

Post » Tue May 31, 2016 5:29 pm

R0J0hound wrote:Probably using the collision polygon.

Tried pinning 8 different detectors, but it ate resources on mobile, so I'll have to go with the basic option of creating a spark under the car and using my imagination :(
B
41
S
12
G
14
Posts: 1,117
Reputation: 11,253

Previous

Return to Construct 2 General

Who is online

Users browsing this forum: Glyfos, jefftrier and 5 guests