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

Juju 14 years, 4 months ago

I have heard "tards" or "turbs" used as well, the latter in a racist context.

eagly 14 years, 4 months ago

Oh yes, how could I forget tards!

By the way, mazimadu, the title of the blog suggests that you do want code provided for you, so I can see where Vance is coming from.