'Selective' Solids

Discussion and feedback on Construct 2

Post » Tue Jun 28, 2016 2:38 am

Hi,

I'm working on building a platforming 'engine' that I can easily add sprites and visuals to when I'm ready, but I'm having a bit of trouble with enemy edge detection.

I've currently got a setup like so:

Image

The blocks at the end of the platforms are edge detectors as outlined in the tutorial here:
https://www.scirra.com/tutorials/253/ho ... ame/page-7

However, since they need to be solid for the enemies to turn around once they hit them, the player can also bump into them and obviously I can't have that happening. Is there a way to selectively disable the detectors' solid status for the players only, or is there a better way I could be doing this?

Thanks.
B
3
Posts: 2
Reputation: 179

Post » Tue Jun 28, 2016 4:40 am

The detectors don't need to be solid - you can still check for a collision with the enemy and make it react on collision.
B
67
S
25
G
4
Posts: 212
Reputation: 7,084

Post » Tue Jun 28, 2016 12:36 pm

Wow, can't believe I missed something so basic.

Thanks!
B
3
Posts: 2
Reputation: 179


Return to Construct 2 General

Who is online

Users browsing this forum: Voytek and 2 guests