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
64
S
10
G
8
Posts: 1,957
Reputation: 9,236

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
96
S
21
G
12
Posts: 3,256
Reputation: 16,813

Post » Tue Dec 28, 2010 5:40 am

in this, 2000
B
64
S
10
G
8
Posts: 1,957
Reputation: 9,236

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 ImageImage
B
164
S
49
G
138
Posts: 7,957
Reputation: 91,880

Post » Tue Dec 28, 2010 5:56 am

Impressive stuff. :)

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

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
64
S
10
G
8
Posts: 1,957
Reputation: 9,236

Post » Tue Dec 28, 2010 6:05 am

Hmm, might try a corner filter for at least top and bottom.
Image ImageImage
B
164
S
49
G
138
Posts: 7,957
Reputation: 91,880

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
64
S
10
G
8
Posts: 1,957
Reputation: 9,236

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
64
S
10
G
8
Posts: 1,957
Reputation: 9,236

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
126
S
29
G
73
Posts: 5,087
Reputation: 51,994

Next

Return to Your Creations

Who is online

Users browsing this forum: rah and 0 guests