A Hairy Ball [UPDATE w/source]

Post your Construct-made creations!

Post » Tue Dec 28, 2010 3:45 am

"It's so fluffy I'm gonna die!"




I was bored, so I decided to make a physics-y furball in construct, that doesn't use physics because "that's overkill" it looks reasonably nice, runs quite fast with 2000 hairs (60fps v sync on this 1.8ghz dual core)

It only uses the sprite object and the drag and drop behavior!

[quote:19s0j2f1]http://dl.dropbox.com/u/1010927/HairyBall.exe
Old Link[/quote:19s0j2f1]

New Link: http://dl.dropbox.com/u/1010927/FurTech.zip

Z and X rotate
Click'n drag the ball around. If you drag and "let go" while it's moving it'll continue moving a bit and bounce off walls if it gets to one.

It's made with some simple pendulum math I modified to be angular "springs" and be acted upon by some vector crazyness for gravity and momentum.

http://freespace.virgin.net/hugo.elias/ ... pendul.htm
^^^ what i used.

It'd be interesting to see as some fluffy character in a game!
B
52
S
7
G
6
Posts: 1,945
Reputation: 7,610

Post » Tue Dec 28, 2010 4:46 am

pretty awesome, not totally correct behavior. but still looks amazing when it springs back. how many sprites are there?
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Tue Dec 28, 2010 5:40 am

in this, 2000
B
52
S
7
G
6
Posts: 1,945
Reputation: 7,610

Post » Tue Dec 28, 2010 5:56 am

[quote:112t6oli]not totally correct behavior[/quote:112t6oli]

Its all that hair creating extra drag. :P

Also, thats 2000 sprite distort maps?
So that would be like over 9000?

Any way, thats pretty awesome, looks like a tribble.
Image Image
B
161
S
48
G
91
Posts: 7,358
Reputation: 67,271

Post » Tue Dec 28, 2010 5:56 am

Impressive stuff. :)

Hmm... I wonder how much faster it would run as a behavior...
Moderator
B
88
S
32
G
33
Posts: 3,005
Reputation: 27,432

Post » Tue Dec 28, 2010 6:01 am

I'm guessing wayyyy faster, and newt, it doesn't really need to use distort maps, I only have them in this because i wanted to specify what colour the fur was with events and have control over tip/middle/base etc. colour, but using a graphic is the same and would look totally the same
B
52
S
7
G
6
Posts: 1,945
Reputation: 7,610

Post » Tue Dec 28, 2010 6:05 am

Hmm, might try a corner filter for at least top and bottom.
Image Image
B
161
S
48
G
91
Posts: 7,358
Reputation: 67,271

Post » Tue Dec 28, 2010 6:16 am

[quote="newt":3g29ohna]Hmm, might try a corner filter for at least top and bottom.[/quote:3g29ohna]

I didn't even realize those exist up until now :shock:

About the unrealistic behavior, theres quite a few params that can be tweaked to get it more stiff or springy or wtv, i just left it really "drafty" because its funner to play with.
B
52
S
7
G
6
Posts: 1,945
Reputation: 7,610

Post » Tue Dec 28, 2010 6:34 pm

Updated: added controls for everything and colour, included 0.99.94 .cap

if someone wants to try their hand at a plugin feel free! Sorry the .cap is messy.
B
52
S
7
G
6
Posts: 1,945
Reputation: 7,610

Post » Tue Dec 28, 2010 7:49 pm

Very cool little demo. Am I the only one to think this looks like a 'nad' :)

Now there's a game idea - bouncing nads!

* I need to lie down - too much xmas cheer methinks *
If your vision so exceeds your ability, then look to something closer.
Moderator
B
120
S
28
G
68
Posts: 4,847
Reputation: 48,295

Next

Return to Your Creations

Who is online

Users browsing this forum: No registered users and 1 guest