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/vs02xaz7imIf you can help out please reply this post. :)
I don't actually use paths a lot so that was just something I thought would work. and yes apparently you can change the speed of a path while an object is traveling on it so setting it to zero speed would work.
I got freaked out that the curled up dragon looks like a dead millipede.
And I don't see how you can't use paths. You just have to make different paths for the desired movements and then stop the default wavy movement to start the next path. Just remember to start every path RELATIVE to the player so it doesn't suddenly snap to the path's position:path_start(ind,speed,endaction,abs);path_shift(ind,xshift,yshift) //If path has an offsetpath_position = pos //If a specific position needs to be resumedpath_end()I had something like this before. I just used an array of hundreds of xpreviouses and ypreviouses.
@Juju: Paths SAVE time, not waste it, silly. :P
That said I don't advise using them because I don't like how they're implemented or how they interact wirh your code.And why are you posting to get others to write your code? Why would WE write YOUR game's code, potentially a lot of code, with no motivation or compensation?We're talking money. Lots of it.
…And three wishes.@All:
Solved the movement problem. I used paths and changed the speed and index of the following object.Also the dragon uses a turret-like turning system towards the following object, making it less jerky.Thanks all!@Vance & Kilin:I would love to pay you guys. Only one problem: Who said I asked you to write code? I asked for advice, I can write code on my own you t***s!I wracked my brain to figure out what word you're referencing with "t***s," but it's beyond me.
That said, the post implied, and in some ways outright stated that we should take your game and write code.@Vance
wat@marbs
I don't get what you're referring to.@vance
I don't know what we are yelling about