Boids tests

Show us your completed creations made in Construct 2

Post » Wed Nov 14, 2012 7:15 am

Yes, boids, they are used for simulating flocks of birds or movement of groups.

Here is my reference:
http://www.kfish.org/boids/pseudocode.html

First attempt:
I basically used the same format as the ref. I think I made a math typo in it somewhere, it's a bit unstable in spots.
http://dl.dropbox.com/u/5426011/examples15/boid.capx

2nd:
This is a rewrite from scratch in a typical event fashion. Only eight events and I seem to have fixed the math so its a bit more stable.
http://dl.dropbox.com/u/5426011/examples15/boids2.capx

3rd:
This rewrite is based on the idea that it would be cool if vector math could be done directly and not have to do the formulas with the components of the vectors. The result was a lot of the math was hidden in a bunch of reusable vector functions. All the function.calls in the expression kind of counteracted the simplifying of expressions I was going for. Not to mention that it's a bit more tedious writing expressions with my system because errors are just ignored.
http://dl.dropbox.com/u/5426011/examples15/vector.capx
B
79
S
24
G
52
Posts: 4,725
Reputation: 39,713

Post » Wed Nov 14, 2012 1:17 pm

thank you for this

nice
B
30
S
6
G
4
Posts: 108
Reputation: 5,602

Post » Wed Nov 14, 2012 1:35 pm

Nice! This is weird, I was wondering if it would be possible to implement the boids algorithm in C2 just this morning when I was feeding the fish. And here it is.
B
54
S
28
G
18
Posts: 1,520
Reputation: 24,990

Post » Tue May 27, 2014 10:21 am

R0J0hound thanks I was looking for something like this. You are star Thanks again
B
206
S
27
G
13
Posts: 1,834
Reputation: 35,776

Post » Tue May 27, 2014 12:19 pm

looks super!
3rd example is beyond me... :(
B
26
S
11
G
2
Posts: 669
Reputation: 5,038

Post » Tue May 27, 2014 2:19 pm

Someone wrote a plugin a while ago: viewtopic.php?t=77775&start=0
ImageImage
B
66
S
19
G
121
Posts: 3,195
Reputation: 72,852

Post » Thu Jan 08, 2015 4:23 pm

Boids are awesome.. wait those sample was started in 2012 ? Favor an update then :)
ImageImageImage
B
79
S
33
G
16
Posts: 597
Reputation: 16,157


Return to Completed Creations

Who is online

Users browsing this forum: No registered users and 2 guests