HOME | DD

JohnJensen β€” Spring Constraints Physics Toy

Published: 2012-03-07 01:41:34 +0000 UTC; Views: 26290; Favourites: 177; Downloads: 189
Redirect to original
Description So I am working on a game in which the enemies explode into many parts when they die - I thought that effect was pretty cool, but I also thought having the enemy become a collapsing ragdoll would be even more cool, so I tried looking for some material on spring constraints, and I remembered ~Supa-Monky had a tutorial on his website: [link] - so by looking at that, I tried to implement it into some balls connected to each other flying around as you drag them and here is the result.

It's not perfect at all, and they jump a lot when touching the ground when at a powerful gravity. When you add points, if some points are like way out of the canvas, just try to drag some points near to that point to the mid of the screen.

Have fun. :D

Also if you set Gravity to 0 it's like outer space
Related content
Comments: 35

LeticaBR [2018-04-12 18:49:42 +0000 UTC]

Gravity: 0
Distance: 5
Points: any number
result: a nice rainbow snake

πŸ‘: 0 ⏩: 0

Tweenka [2017-02-09 10:54:42 +0000 UTC]

Slow Motion B)
Gravity - 1
Distance - 6
Points - 200

πŸ‘: 0 ⏩: 0

Randomnessam [2016-12-03 15:28:53 +0000 UTC]

Β  so much fun

πŸ‘: 0 ⏩: 0

blueswirls1234 [2016-02-21 17:31:21 +0000 UTC]

gravity:37
distance: any number
points:1

You made a bouncing ball.

πŸ‘: 0 ⏩: 0

SonicTheHedgeTrimmer [2016-01-25 01:55:35 +0000 UTC]

Ohhhh you should make a key that constains the selected point, can make like connect-the-dots picturesΒ 

πŸ‘: 0 ⏩: 0

Cupcakez16 [2016-01-08 22:50:53 +0000 UTC]

DON'T READ THIS. YOU WILL BE KISSED ON THE BEST DAY OF YOUR LIFE. NOW THAT YOU'VE STARTED READING, DON'T STOP. THIS IS SO FREAKY.
1)Say your name 10 times
2)Say your mom's name 5 times
3)Say your crush's name 3 times
4)Paste this onto 4 other games
If you do this, your crush will kiss you on the nearest Friday possible. But if you don't paste this, you will get bad luck. SEND THIS ON 5 DIFFERENT GAMES IN 143 MINUTES. WHEN YOUR DONE, PRESS F6 AND YOUR CRUSHES NAME WILL APPEAR IN BIG LETTERS. THIS IS SO FREAKY IT ACTUALLY WORKS

πŸ‘: 0 ⏩: 0

laurenisabae [2015-08-13 21:15:12 +0000 UTC]

Points: 100 Distance: 5 Gravity: 1 Result: Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β 

πŸ‘: 0 ⏩: 1

laurenisabae In reply to laurenisabae [2015-08-13 21:16:38 +0000 UTC]

300*

πŸ‘: 0 ⏩: 1

laurenisabae In reply to laurenisabae [2015-08-20 01:11:43 +0000 UTC]

And drag it around :333333333333333333333333333

πŸ‘: 0 ⏩: 0

Creepernoop [2015-08-05 17:53:32 +0000 UTC]

Best aplication ever!

πŸ‘: 0 ⏩: 0

AlabamaStory [2015-02-06 00:25:19 +0000 UTC]

Gravity: 1
Distance: 30
Points: 10
IN SPAAAAAAAAAAAAAAACCCCCCCCCCCCCEEEEEEEEEE XD

πŸ‘: 0 ⏩: 0

Kittygreenfox67 [2014-04-27 15:58:00 +0000 UTC]

i made it dance XD

πŸ‘: 0 ⏩: 0

FursonaAngel [2014-03-22 21:15:48 +0000 UTC]

Gravity:37
Distance:200
Points:300

DUBSTEP

πŸ‘: 0 ⏩: 2

laurenisabae In reply to FursonaAngel [2015-08-15 14:48:17 +0000 UTC]

Laggy but awesome Β  Β  Β 

πŸ‘: 0 ⏩: 0

AlabamaStory In reply to FursonaAngel [2015-02-06 00:25:28 +0000 UTC]

XD

πŸ‘: 0 ⏩: 0

Lovz2Draw [2013-06-01 02:39:19 +0000 UTC]

i Lov it !!!

πŸ‘: 0 ⏩: 0

jessid13 [2012-11-20 02:29:53 +0000 UTC]

This made my day!

πŸ‘: 0 ⏩: 0

Yuriippe [2012-08-20 18:13:48 +0000 UTC]

what is this game

πŸ‘: 0 ⏩: 1

JohnJensen In reply to Yuriippe [2012-08-20 18:30:58 +0000 UTC]

it's just a programming test

πŸ‘: 0 ⏩: 0

KIMMON [2012-05-15 21:47:28 +0000 UTC]

hehe!I had it on the maximum for all of them and it actually looked cool!......then I had gravity-0 distance-5 points-1.

πŸ‘: 0 ⏩: 0

Utsutori [2012-04-21 02:10:12 +0000 UTC]

Gravity-0, distance-1, points-300, drag the mouse around ;u; awesomeness

πŸ‘: 0 ⏩: 0

bonisol [2012-03-13 10:52:29 +0000 UTC]

Cool!

πŸ‘: 0 ⏩: 0

thejoker1997RBX [2012-03-08 04:18:33 +0000 UTC]

Can you please share this? ?

πŸ‘: 0 ⏩: 1

JohnJensen In reply to thejoker1997RBX [2012-03-08 07:27:09 +0000 UTC]

The code? Do you have Flash CS5.5, 5, or 4?

πŸ‘: 0 ⏩: 1

thejoker1997RBX In reply to JohnJensen [2012-03-08 18:29:30 +0000 UTC]

Sure do! CS5.5

πŸ‘: 0 ⏩: 1

JohnJensen In reply to thejoker1997RBX [2012-03-09 08:08:38 +0000 UTC]

I'll note the .fla to you - for educational purposes

πŸ‘: 0 ⏩: 0

shangerz [2012-03-07 12:57:45 +0000 UTC]

Great physics, wow! I love flash lol

πŸ‘: 0 ⏩: 1

JohnJensen In reply to shangerz [2012-03-07 19:37:09 +0000 UTC]

Thanks! :D Flash is a pretty good platform. This could've been done in a lot of other things as well though

πŸ‘: 0 ⏩: 1

shangerz In reply to JohnJensen [2012-03-08 09:55:28 +0000 UTC]

Yep Flash is awesome I like making games and flash is the only platform I've experimented with so far..

πŸ‘: 0 ⏩: 0

thejoker1997RBX [2012-03-07 03:18:42 +0000 UTC]

If you set gravity to 0, distance to 5, and points to 300. You get an epic snake effect. Very nice work!

πŸ‘: 0 ⏩: 1

JohnJensen In reply to thejoker1997RBX [2012-03-07 09:22:50 +0000 UTC]

Haha yeah I love that xD thanks

πŸ‘: 0 ⏩: 0

ClearFog [2012-03-07 02:23:28 +0000 UTC]

Genius!

πŸ‘: 0 ⏩: 1

JohnJensen In reply to ClearFog [2012-03-07 07:56:52 +0000 UTC]

Thanks! :D

by the way
you make some nice pixel art
work with me ;__;

πŸ‘: 0 ⏩: 1

ClearFog In reply to JohnJensen [2012-03-07 21:43:41 +0000 UTC]

np, xD thx - What do you need? i'll do it, working on a project alrdy But I can squeeze them in

πŸ‘: 0 ⏩: 0

ClearFog [2012-03-07 02:23:15 +0000 UTC]

Wow

πŸ‘: 0 ⏩: 0