|
Answer» OK, I'm using a langauge that most of you won't know (GML - Game Maker Language), and two of the commands are lengthdir_x(length,direction) and lengthdir_y(length,direction). For _x, it gives the following definition: Returns the horizontal x-component of the vector determined by the indicated length and direction.
Um.. so can anyone translate that so I COULD UNDERSTAND?Try this..
Lots more info on the Weird & Wonderful Web (aka WWW)
Good luckThanks, Dusty. I'll look into that, and (hopefully) I should be using lengthdir in no time.Gaming Master Apprentice
Oxymoron EH.....?
Well, I've learnt how to use lengthdir now, just from one look at the diagram (I didn't read through the WHOLE thing), so my game making skills have progressed.
Now, I can do code such as: instance_create(x+lengthdir_x(20,image_angle),y+lengthdir_y(9,image_angle),shot), where the shot will always be create from exactly where your gun is, no matter which way you face.
So yeh.Good to HEAR of your progress, look forward to you posting your completed game and letting us know where to have a go.
Cheers.
|