making a dragon

Posted by mazimadu on May 24, 2010, 8:37 p.m.

Hey guys, I need help. I am making a dragon for a game and am having trouble making it move. I need a good snake algorithm to work with this file. If anyone knows where I can get one please let me know.

The one I am using gets the id of the next object and makes the parts move to that point(actually, it moves to a circle 30 pixels from the center). This makes for some very jerky movements.

the editable is here

http://www.box.net/shared/vs02xaz7im

EDIT

Thanks for the help guys. I ended up fixing it using a tutorial that stores the coordinates of the head in a stack. The only down side is that the thing cant stop moving. If it does there will be some awkward moments.

Comments

KaBob799 14 years, 6 months ago
mazimadu 14 years, 6 months ago

what do I click on?

lol

Iluvfuz 14 years, 6 months ago

Probably the link. That movie inspired me to draw a beautiful dragon like in the video. It also provides the answer to your algorithmic questions if you watch it 3 times in succession.

Castypher 14 years, 6 months ago

The eyes remind me of enemies on Mario games.

Juju 14 years, 6 months ago

Homestar Runner isn't funny.

Cesque 14 years, 6 months ago

The way you do it isn't bad, the only thing you need to do is make it less jerky by having parts stop moving if they are already close enough to other parts and/or the point where the dragon is supposed to move.

(and if it's an enemy, you could probably get around that by just having it constantly move towards some point at higher speeds - if it's controlled by players, then obviously that won't work)

Cesque 14 years, 6 months ago

Nevermind - I did that, and now if it moves in back and forth, only the head and the segments closes to it move, making it look more like a lazy cobra. I take it you always wanted it to drag its tail behind it along the path it's moving. Oh well :P

(I suppose there would be some GM Snake tutorials around, though probably not mouse-based)

TDOT 14 years, 6 months ago

Ahh crap…I made this a while back for someone else…lemme' see if I can dig up the file

TDOT 14 years, 6 months ago

Well it looks like I uploaded it to willhostforfood…which isn't up anymore >_<

My laptop is currently dead until further notice, so I can't get to the file D:

I do remember this was quite a bitch though…Obel might still have the file so you could go bug him for it ;p

mazimadu 14 years, 6 months ago

Thanks for the help guys. I ended up fixing it using a tutorial that stores the coordinates of the head in a stack. The only down side is that the thing cant stop moving. If it does there will be some awkward moments.