enemy issue

Get help using Construct 2

Post » Sat Aug 24, 2013 1:28 pm

I was following this tutorial on how to make my snake enemy change direction once it hits the edge marker, but once it hits the right edge marker, It changes direction BUT it changes back the other way and walks through the edge marker. I don't know what I'm doing wrong =/

Codeman3202013-08-24 13:29:34
B
10
S
4
G
1
Posts: 159
Reputation: 1,933

Post » Sat Aug 24, 2013 1:31 pm

is the object's collision "on" in the properties?
B
88
S
29
G
14
Posts: 1,154
Reputation: 15,003

Post » Sat Aug 24, 2013 1:52 pm

didn't realize your post was a question. Yes, The edge marker has collision.
B
10
S
4
G
1
Posts: 159
Reputation: 1,933

Post » Sat Aug 24, 2013 1:58 pm

What happens when the action is set to "right" or "left"?
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Sat Aug 24, 2013 2:01 pm



That's what happens. did exactly as the tutorial said.

Codeman3202013-08-24 14:02:07
B
10
S
4
G
1
Posts: 159
Reputation: 1,933

Post » Sat Aug 24, 2013 2:16 pm

The setup seems correct, so the problem seems to lie elsewhere.
Maybe your enemy's collision polygon causes it to colide with the edgemarker again when set to mirror, but I couldn't say.LittleStain2013-08-24 14:16:47
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Sat Aug 24, 2013 2:22 pm

*facepalm* that was basically it, thank you. I just repositioned the collision markers on the snake sprite around the head INSTEAD of covering the tail as well. The Tail was making it screw up as it collided with the edge marker.
B
10
S
4
G
1
Posts: 159
Reputation: 1,933


Return to How do I....?

Who is online

Users browsing this forum: Alvaro2 and 15 guests