How do I Detect if teh Center of my object

Get help using Construct 2

Post » Sun Mar 13, 2016 2:17 pm

Hey guys

How can I detect if the center point of my playeobj is overlappng with a wall/object.

The reason is I allow a little overlap of the player object to walls to cause damage but if the center of the player overlaps the wall i trigger death.

thanks
B
7
S
1
Posts: 34
Reputation: 525

Post » Sun Mar 13, 2016 3:10 pm

I am sure one of the math guys can give you a formula.. however, I can think of two other ways:

1. Put an imagepoint in center (created in sprite manager) and use it to test overlap.
2. Pin a small sprite to center on creation and use this sprite's on-overlap condition to kill player (you can easily adjust size and shape of "kill zone" this way).
Check out my completed games on the Arcade! Capt. Doe Save the Universe! & Clicker Wizard!
B
71
S
19
G
8
Posts: 640
Reputation: 9,701


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 27 guests