Be a Supporter!

ragdoll help

  • 554 Views
  • 21 Replies
New Topic Respond to this Topic
cram320
cram320
  • Member since: Apr. 21, 2005
  • Offline.
Forum Stats
Member
Level 09
Blank Slate
ragdoll help 2006-02-12 12:30:21 Reply

what is the actionscript i need for a ragdoll object
thanks for all help

American-Chinker
American-Chinker
  • Member since: Feb. 2, 2005
  • Offline.
Forum Stats
Member
Level 23
Blank Slate
Response to ragdoll help 2006-02-12 12:35:04 Reply

I think there's a downloadable .fla on some stick website, like stickpage.com or something like that, search around, i know it's out there.

Khao
Khao
  • Member since: Sep. 20, 2003
  • Offline.
Forum Stats
Member
Level 20
Blank Slate
Response to ragdoll help 2006-02-12 12:50:33 Reply

At 2/12/06 12:30 PM, cram320 wrote: what is the actionscript i need for a ragdoll object

why are all the people so fucking lazy they don't even bother looking to find themself or learn or think about what they would need to do and just fucking ask for somebody to give them a whole script??!! What makes everybody so fucking lazy these days??!!!

I'm speechless!

TrueDarkness
TrueDarkness
  • Member since: Aug. 31, 2004
  • Offline.
Forum Stats
Member
Level 27
Blank Slate
Response to ragdoll help 2006-02-12 12:54:30 Reply

At 2/12/06 12:50 PM, Khao wrote:
I'm speechless!

Oh rly?

why are all the people so fucking lazy they don't even bother looking to find themself or learn or think about what they would need to do and just fucking ask for somebody to give them a whole script??!! What makes everybody so fucking lazy these days??!!!

=D

Max-Vador
Max-Vador
  • Member since: Nov. 12, 2005
  • Offline.
Forum Stats
Member
Level 13
Animator
Response to ragdoll help 2006-02-12 12:58:13 Reply

well, you can get pretty lazy nowadays. some companies are giving away ehtire game engines for free, and the whole flash ragdoll thing is exclusive to a few AS writers, so it's won't be readily available.

AtomicTerrorist
AtomicTerrorist
  • Member since: Aug. 13, 2004
  • Offline.
Forum Stats
Member
Level 37
Blank Slate
Response to ragdoll help 2006-02-12 12:59:23 Reply

ppl arent that lazy we do look around but cant find it thats y we ask here

Max-Vador
Max-Vador
  • Member since: Nov. 12, 2005
  • Offline.
Forum Stats
Member
Level 13
Animator
Response to ragdoll help 2006-02-12 13:01:11 Reply

At 2/12/06 12:59 PM, AtomicTerrorist wrote: ppl arent that lazy we do look around but cant find it thats y we ask here

but you don't know how lazy it makes you look when you ask.

Khao
Khao
  • Member since: Sep. 20, 2003
  • Offline.
Forum Stats
Member
Level 20
Blank Slate
Response to ragdoll help 2006-02-12 13:02:26 Reply

At 2/12/06 12:59 PM, AtomicTerrorist wrote: ppl arent that lazy we do look around but cant find it thats y we ask here

well then this guy doesn't know google cause he would have found lots of tutorials about inverse kinetics and rag doll physics! He just asks for a whole script! >:(
If I ever ask something on a forum it's when I can't find any solution to my problem after looking over google, help files, sites related to the language I'm having problems with (AS, php, javascript..), ask friends.. and if all these fails then I go ask help on a forum! Most of the time I find answer by myself and I learn A LOT MORE by doing this then by asking someone to give me a fucking answer!

MadGiraffe
MadGiraffe
  • Member since: Jan. 7, 2005
  • Offline.
Forum Stats
Member
Level 10
Blank Slate
Response to ragdoll help 2006-02-12 13:03:45 Reply

At 2/12/06 12:59 PM, AtomicTerrorist wrote: People aren't that lazy, we do look around but can't find anything. That's why we ask around here.

Damn this thread is too flammable.

"Lazyness serves the ignorant."

Always keep in mind, the ease of the things you can, was firstly the effort of someone else.
And simply put we can't just go all easy, because then we won't get anywhere.
So get your ass moving!

goofgoof
goofgoof
  • Member since: Feb. 12, 2006
  • Offline.
Forum Stats
Member
Level 02
Blank Slate
Response to ragdoll help 2006-02-12 13:44:09 Reply

ragdoll i need help how to one plz

GustTheASGuy
GustTheASGuy
  • Member since: Nov. 2, 2005
  • Offline.
Forum Stats
Member
Level 08
Blank Slate
Response to ragdoll help 2006-02-12 13:46:36 Reply

At 2/12/06 01:44 PM, goofgoof wrote: ragdoll i need help how to one plz

How can you write if you can't read? Interesting...


BBS Signature
dELtaluca
dELtaluca
  • Member since: Apr. 16, 2004
  • Offline.
Forum Stats
Member
Level 20
Blank Slate
Response to ragdoll help 2006-02-12 13:52:02 Reply

At 2/12/06 12:32 PM, SpamBurger wrote: Learn some trigonometry.

you don't need trigonometry :p


using ShamelessPlug; NapePhysicsEngine.advertise();

BBS Signature
Devenger
Devenger
  • Member since: Dec. 24, 2004
  • Offline.
Forum Stats
Member
Level 09
Blank Slate
Response to ragdoll help 2006-02-12 13:57:25 Reply

At 2/12/06 01:55 PM, SpamBurger wrote: If this guy doesnt know trig though, how can he learn kinematics and stuff like that? It would be hard without basic math knowledge.

No, no, you see, Delta uses his own overconfidence and ego to make stuff in Flash, and he doesn't realise not all of us are able to do this.

D

I'm back! on a temporary basis. No-one can remember who I am! but I don't really mind.

Disarray-yarrasiD
Disarray-yarrasiD
  • Member since: Nov. 14, 2004
  • Offline.
Forum Stats
Member
Level 09
Blank Slate
Response to ragdoll help 2006-02-12 14:06:18 Reply

I agree with everyone here but if you really want a script, just decompile "interactive budy" or "n: way of the ninja"


BBS Signature
caseyo
caseyo
  • Member since: May. 14, 2005
  • Offline.
Forum Stats
Member
Level 23
Blank Slate
Response to ragdoll help 2006-02-12 14:10:51 Reply

At 2/12/06 02:06 PM, Disarray_yarrasiD wrote: just decompile

That's really not helping anyone. Then he'll be a theif too.

Disarray-yarrasiD
Disarray-yarrasiD
  • Member since: Nov. 14, 2004
  • Offline.
Forum Stats
Member
Level 09
Blank Slate
Response to ragdoll help 2006-02-12 14:14:06 Reply

no he would not be a thief

everyone decompiles its one of the best ways to learn.

its only stealing if you use the same codes as whay you find there but if you use the codes that you decompiled to develop your own its perfectly fine.


BBS Signature
Khao
Khao
  • Member since: Sep. 20, 2003
  • Offline.
Forum Stats
Member
Level 20
Blank Slate
Response to ragdoll help 2006-02-12 14:38:54 Reply

At 2/12/06 02:14 PM, Disarray_yarrasiD wrote:
everyone decompiles its one of the best ways to learn.

sorry but NO!
it doesn't help learning from decompiling an existing script, plus the code you will be looking at isn't yours so it would be coded totally differently from how you code your things... decompiling is bad and should be kept for recovering .swf where you lost the .fla!

liam
liam
  • Member since: Dec. 11, 2004
  • Offline.
Forum Stats
Member
Level 22
Blank Slate
Response to ragdoll help 2006-02-12 14:41:50 Reply

I've never decompiled to learn, and if I did it wouldn't help much because decompilers fuck up the code anyway.


Sup, bitches :)

BBS Signature
noobish5000
noobish5000
  • Member since: Aug. 11, 2005
  • Offline.
Forum Stats
Member
Level 01
Blank Slate
Response to ragdoll help 2006-02-12 15:15:41 Reply

meh I made the poor guy a rag doll script anyway

its not optimised and is very basic so please don't comment on that.

just a basic pendulum script it took me about 10 minutes.

onClipEvent (load) {
rot = 0;
_rotation = rot;
weight = 3;
inertia = (rot/10)*weight;
speed = 0;
friction = .9;
arrx = new Array();
arry = new Array();
arrx.push(_x);
arry.push(_y);
}
onClipEvent (enterFrame) {
arrx.push(_x);
arry.push(_y);
arrx.shift();
arry.shift();
speedd = 1;
_x = _root._xmouse;
_y=_root._ymouse
Xdistance = (arrx[0])-_x;
Ydistance = (arry[0])-_y;
if (Xdistance !== 0) {
radAngle = Math.atan2(Ydistance, Xdistance);
rotata = int((radAngle*360/(2*Math.PI))+90);
rotat = 180-rotata;
updateAfterEvent();
} else {
rotat = 0;
}
defaultt = rotat/-10;
inertia = (rot/10)*weight;
speed -= inertia-defaultt;
speed *= friction;
rot += speed;
_rotation = rot;
trace(rotat);
}

Disarray-yarrasiD
Disarray-yarrasiD
  • Member since: Nov. 14, 2004
  • Offline.
Forum Stats
Member
Level 09
Blank Slate
Response to ragdoll help 2006-02-12 15:17:15 Reply

asshole little brother posted my script while i was in the washroom.

*sounds of violence*


BBS Signature
NWO-Striker
NWO-Striker
  • Member since: Apr. 10, 2005
  • Offline.
Forum Stats
Member
Level 05
Blank Slate
Response to ragdoll help 2006-02-12 15:21:37 Reply

lawl

cram320
cram320
  • Member since: Apr. 21, 2005
  • Offline.
Forum Stats
Member
Level 09
Blank Slate
Response to ragdoll help 2006-02-12 18:16:17 Reply

thank you for your reply
i tryed out the code and it works, how do i make it so the object doesnt always follow my curser?

and for all you other people i did search google for help and didnt find what i wanted

At 2/12/06 03:15 PM, noobish5000 wrote: meh I made the poor guy a rag doll script anyway

its not optimised and is very basic so please don't comment on that.

just a basic pendulum script it took me about 10 minutes.

onClipEvent (load) {
rot = 0;
_rotation = rot;
weight = 3;
inertia = (rot/10)*weight;
speed = 0;
friction = .9;
arrx = new Array();
arry = new Array();
arrx.push(_x);
arry.push(_y);
}
onClipEvent (enterFrame) {
arrx.push(_x);
arry.push(_y);
arrx.shift();
arry.shift();
speedd = 1;
_x = _root._xmouse;
_y=_root._ymouse
Xdistance = (arrx[0])-_x;
Ydistance = (arry[0])-_y;
if (Xdistance !== 0) {
radAngle = Math.atan2(Ydistance, Xdistance);
rotata = int((radAngle*360/(2*Math.PI))+90);
rotat = 180-rotata;
updateAfterEvent();
} else {
rotat = 0;
}
defaultt = rotat/-10;
inertia = (rot/10)*weight;
speed -= inertia-defaultt;
speed *= friction;
rot += speed;
_rotation = rot;
trace(rotat);
}