how to simulate a real fly... flying around

Get help using Construct 2

Post » Thu Aug 22, 2013 3:42 pm

Hi,

I'd like to get some advice on how i can simulate a fly... I'm working for the first time on construct 2 and i've read some tutorial and search on the forum and right now i'm using 2 different kind of fly:

1- moving the fly between 2 invisible bar (like an enemy on a platform game).

2- behavior sine (but it's too slow)

The goal of the game is to kill flies and i want them to act like real flies as much as possible.

Txs a lot
B
9
S
3
Posts: 36
Reputation: 1,144

Post » Thu Aug 22, 2013 4:27 pm

Something like this?

fly-example
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 » Fri Aug 23, 2013 2:51 pm

@LittleStain

Very cool

So what's the logic? At a random interval u change angle and speed?
B
9
S
2
G
2
Posts: 59
Reputation: 1,024

Post » Fri Aug 23, 2013 3:01 pm

Indeed @Hoyer



just fooling around a bit with the values wil probably make it even better.
And I used bounce of solids for the edges of the layout, there is probably a more elegant solution.
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 » Fri Aug 23, 2013 3:19 pm

Txs a lot! That's what i was trying to figure out... i'll work on it to have different kind of mosquitoes flying around.
B
9
S
3
Posts: 36
Reputation: 1,144

Post » Fri Aug 23, 2013 3:49 pm

there's something i do wrong cause it's not working... can i see the capx please. Txs
B
9
S
3
Posts: 36
Reputation: 1,144

Post » Fri Aug 23, 2013 4:14 pm

The only events in the capx are the ones in the screenshot.
Don't forget to put solid objects around the layout and set bounce of solids to true.LittleStain2013-08-23 16:15:11
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


Return to How do I....?

Who is online

Users browsing this forum: Jackriduk, Username05 and 29 guests