Platform Game: Enemy turn around on Edge

Get help using Construct 2

Post » Sun Jan 13, 2013 4:43 pm

How do I make enemies turn around on platform edges?
I tried with invisible object and mirror on collision, but enemy doesnt go back, just mirror.

SOLVED: Make 2 invisible objects Mirror1 and Mirror2

On Collision with Mirror1 set Bounce off and set Mirrored, on collision with Mirror 2 set Bounce off and set notMirrored.

Making 2 mirrors on both sides of platform were easiest way to do it.Human2013-01-13 20:31:39
B
11
S
4
Posts: 53
Reputation: 1,148

Post » Sun Jan 13, 2013 8:21 pm

Lets say your sprite marking the end of the platform is called "end"

Player on collision with sprite(end) -> set mirrored



B
50
S
21
G
8
Posts: 844
Reputation: 10,299

Post » Sun Jan 13, 2013 8:32 pm

I found easiest and best working way, check first post.
B
11
S
4
Posts: 53
Reputation: 1,148


Return to How do I....?

Who is online

Users browsing this forum: Muini and 27 guests