[EXAMPLE] enemy automatic turning at edges

Get help using Construct 2

Post » Wed Jan 11, 2017 12:15 pm

Had this idea at work, just mocked it up and it seems to work so far, I'm using containers for the two pieces and the enemy is just a platform movement and the solid ground is a tilemap:

Image
Image
B
41
S
12
G
14
Posts: 1,122
Reputation: 11,282

Post » Wed Jan 11, 2017 6:47 pm

B
41
S
12
G
14
Posts: 1,122
Reputation: 11,282

Post » Wed Jan 11, 2017 7:51 pm

Detecting platform edges? Its far more elegant to place an collision object at the ends of a platform. Then you can run checks for multiple enemies using just those 2 objects instead of attaching 2 to each one.
Image
B
30
S
9
G
3
Posts: 171
Reputation: 3,334

Post » Wed Jan 11, 2017 8:42 pm

Yeah, but this is quite cool if you don't want to do that for every edge, unless there's a big downside to using this method (other than two detectors per enemy)?
B
41
S
12
G
14
Posts: 1,122
Reputation: 11,282

Post » Sat Jan 21, 2017 10:51 pm

EDIT: I just make a container and they create properly for every instance on an enemy, so you just set your enemy and the game takes care of the rest. I don't understand why this wouldn't be the more elegant approach?
Image
B
41
S
12
G
14
Posts: 1,122
Reputation: 11,282


Return to How do I....?

Who is online

Users browsing this forum: pcfernandesjr and 25 guests