How do I Displacing a bird side to side.

Just started using Construct 2? Post your questions here

Post » Tue Jul 15, 2014 3:00 pm

What I do is this:

I want a bird that is dragged horizontally to a distance x.
When you reach the distance that was told to change frame and scroll with
again negatively to another x distance and change of frame again.

Bird
Set mirrored X1 <----------------------------^o^---------------------------->X2 Set not mirrored

THX! :)
B
47
S
12
G
5
Posts: 124
Reputation: 6,851

Post » Tue Jul 15, 2014 3:49 pm

What kind of behaviour are you using for the movement of the bird?

sounds like you want something like:

Bird if x-position < 100
-Bird set mirrored

Bird if x-position> 400
-set not mirrored
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 » Wed Jul 16, 2014 1:15 am

Something similar.
The behavior I'm using is bullet.
B
47
S
12
G
5
Posts: 124
Reputation: 6,851

Post » Wed Jul 16, 2014 12:34 pm

I'm not sure what exactly is the effect you're looking for, but it seems to me that Sine Behavior might be your best call.

Regarding the mirroring, you should just check the change in the X of the bird since the last iteration and change the mirroring accordingly.

Here's a preview:
http://examples.gamesintheattic.com/mirroring/

And here's the .capx:
mirroring.capx
You do not have the required permissions to view the files attached to this post.
Bruno

I like to eat, but I'm no cook. Why liking to play games would make you a game designer?
B
21
S
6
G
3
Posts: 658
Reputation: 3,843

Post » Wed Jul 16, 2014 11:21 pm

Wow! That's exactly what I wanted!
You are a genius!

I would learn to be your way of thinking! What should I study!

Thank you very much!
B
47
S
12
G
5
Posts: 124
Reputation: 6,851

Post » Thu Jul 17, 2014 12:02 pm

Glad to help. Just tag me if you need help and I'll be happy to try and help. :)
Bruno

I like to eat, but I'm no cook. Why liking to play games would make you a game designer?
B
21
S
6
G
3
Posts: 658
Reputation: 3,843

Post » Fri Jul 18, 2014 3:32 pm

Thank you very much! @brunopalermo @LittleStain
B
47
S
12
G
5
Posts: 124
Reputation: 6,851


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 1 guest