Need movement code for my dragon

Posted by mazimadu on July 3, 2010, 11:49 a.m.

WARNING: The following was copy pasted from the gmc, so forgive my blatant froum language

Hi guys. I need a little help with a game I am making. You see I am making a game where you have to fight a dragon by climbing to its head. So far I have the movement, attacks, and grapple code implemented; as seen below:

Right now the dragon is following the mouse. I am trying to make the dragon follow a predetermined path that changes based on the players location. Basically, I want the dragon to:

1. Move in a wavy motion left and right of the screen.

2. Slightly dive down to fire a fireball, then return to 1.

3. If the player is on it, move upwards and make a loop-de-loop.

4. If the player is really close to the head, avoid flying to 3 specific points on the screen.

All the while, speed is constant.

If you have Game maker 8(registered), you can try implementing your code with this stripped down version of the dragon.

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

If you can help out please reply this post. :)

Comments

Vance_Kimiyoshi 14 years, 4 months ago

@Ferret

What? I'm so confused…

Ferret 14 years, 4 months ago

@Vance

LOUD NOISES

Acid 14 years, 4 months ago

twats

Vance_Kimiyoshi 14 years, 4 months ago

Oh, heh. Don't really hear that word, ever. It's never really used where I am.

Juju 14 years, 4 months ago

mazi, feel free to swear… Let it all out…

mazimadu 14 years, 4 months ago

@Acid and Juju

Thanks for getting it. I know I can curse. I just wanted to make Vance's head to explode.

Vance_Kimiyoshi 14 years, 4 months ago

"Wracked my brain" was an exaggeration. I looked at it, thought "Hmm, not sure what that is," and wrote that response.

eagly 14 years, 4 months ago

You could also have gone with twits, thugs or turds.

Others acceptable include (but are not limited to): tubas, trams, (alba)tross and togas.

My personal favourite is toads.

marbs 14 years, 4 months ago

@mazimadu

I got it first, but apparently my clue of "wat" was too cryptic, however eagly does offer some convincing alternatives!

eagly 14 years, 4 months ago

I understood your clue, marbs. Must be our British connection at work.