Bird Problem

Get help using Construct 2

Post » Sun Sep 22, 2013 11:55 pm

I was wrong! I did find something else I didn't see before. This is on there. Could this be causing it? I think this has to be the problem. I'm just stumped how to solve it...



This is to make the bird come toward you if you get close to it to try to make collision event.Eliyahna2013-09-22 23:59:59
B
18
S
2
Posts: 61
Reputation: 902

Post » Mon Sep 23, 2013 1:08 am

I would say it could go upside down for a second when you disable Bullet behaviour.
B
47
S
18
G
84
Posts: 2,271
Reputation: 49,796

Post » Mon Sep 23, 2013 1:55 am

nope removing that didn't help *sigh*. It seems to turn upside down when I approach it. The bullet is initially disabled on layer startup and the bird is sitting on a tree. When the player gets within 100 pixels the bird should fly toward the player.

Currently it seems like when the player approaches within the 100 the bird flips upside down and flies away.
B
18
S
2
Posts: 61
Reputation: 902

Post » Mon Sep 23, 2013 4:28 pm

If there weren't any controls at all on it... and I asked you how you would write the controls for a bird... what would you say?

I think I'm going to delete all the controls on it and start fresh. :(
B
18
S
2
Posts: 61
Reputation: 902

Post » Mon Sep 23, 2013 4:38 pm

If it's a bird flying across all axes across the screen then 8-direction. If it's a bird that goes left/right and jumps then use platform behaviour. Do not use bullet behaviour.
B
47
S
18
G
84
Posts: 2,271
Reputation: 49,796

Post » Mon Sep 23, 2013 5:10 pm

@Eliyahna

maybe it just bounces? :)
B
18
S
7
G
1
Posts: 783
Reputation: 4,247

Post » Thu Oct 10, 2013 10:15 pm

This bird was a HUGE pain but it taught me a lot. There are more actions to him but here is most of his code. I finally used platform simulations to successfully fix him.

He has an instance variable for "right" text for direction and behaviors are platform, bound to layout and solid.

I added invisible blocks as "edge markers" on the right and left sides of the screen so that he would know which way he's going and won't turn backwards or upside down. I also made it so that if he hits the ground he will simulate control "jump" so that he doesn't stick on the ground.

Eliyahna2013-10-10 22:17:33
B
18
S
2
Posts: 61
Reputation: 902

Previous

Return to How do I....?

Who is online

Users browsing this forum: dop2000, R0J0hound and 7 guests