[x]
All Deviations

virtual hermit crab v0.5ish by ~icancough:iconicancough:


©2005-2008 ~icancough
Details
Submitted: February 1, 2005
File Size: 78.9 KB
Image Size: 20.3 KB
Resolution: 425×250
Comments: 59
Favourites & Collections: 46 [who?]

Views
Total: 1,242
Today: 1

Downloads
Total: 281
Today: 0

Embed


Thumb

Artist's Comments

my virtual hermit crab project.

incomplete, but i want to show it.

i'm actually reworking it... not exactly from the ground up but close enough...

i want functions to run on the movieclips they affect, and not in one universal loop on the main timeline.

this is the last working version i made before i started my revision.

the legs need to go into the shell with the rest of the crab.

also, it was designed for flash player 6 and up. i did not include a version checker.
[x]

Devious Comments

love 1 1 joy 0 0 wow 1 1 mad 0 0 sad 0 0 fear 0 0 neutral 0 0

~Bsword:iconBsword: Feb 1, 2005, 9:16:17 PM
hahaha, Lovely, Very Good Job!!!!
~flashGamer:iconflashGamer: Feb 2, 2005, 8:51:04 PM
Awsome job, looks great. Nice work! You should make it so u are able to feed him, etc....nice job!

--
Please comment on my games and experiments
~icancough:iconicancough: Feb 2, 2005, 10:18:25 PM
thanks :P

i was just admiring your picture generator lite-brite project earlier today!

there are a few things i'd like to do with the crab.

if or when i get to expanding past the walking / shell entering functions, feeding will be at the top of my list.

along with more goofy options.

because i'm a fan of goofy options.
~flashGamer:iconflashGamer: Feb 2, 2005, 11:08:16 PM
haha nice...thanks for admiring my stuff too. If you wouldnt mind maybe commenting and let me know what u think of it..because not many people understand that i make these for the comments. And if i dont get comments....its not as fun making them....i hope you get what i mean. :)

--
Please comment on my games and experiments
~flashGamer:iconflashGamer: Feb 2, 2005, 11:11:29 PM
I was also wondering if you could give me a little explanation of the code behind this crab..lol. becuase i really like it and i would like to expand my knowledge and stuff. Thanks

--
Please comment on my games and experiments
~icancough:iconicancough: Feb 3, 2005, 5:33:57 PM
yeah, sure!

i don't really know where to begin, though.

the trickiest code i had to write was the inverse-kinematics for the legs.

i don't know much about inverse-kinematics, or how knowledgable you are on the subject, but i'll explain how i approached the problem if you are interested.

basically, i have an object point for each leg that holds the x and y's for where the tip of each leg should be.

and the "hip" point for each leg is determined by where the crab is. (since the hip joint never changes position in relation to the crab)

now, you just have to imagine two circles:

one is the range of motion if the tip of the lower leg is at the desired point...

...and the other is the range of motion of the upper leg on the "hip" joint.

the two places these points intersect are the possible "knee" joints... and, in this case, you'll always select the top interesection point.

...

there's more to it, but thinking about it like this is much easier to program.

if you'd like more info, feel free to email me.

:P
~icancough:iconicancough: Feb 3, 2005, 5:35:00 PM
i know exactly what you mean! :P

i'll comment, now. :P
~tomten:icontomten: Feb 4, 2005, 1:47:13 PM
I love hermitcrabs XDDD and this animation is really cool, w/o a doubt +fav

--
All makt åt Tengil
~icancough:iconicancough: Feb 4, 2005, 2:53:37 PM
i love hermit crabs, too.

i don't have any right, now...

i've been thinking about buying them again.

thanks!