I have a couple quick questions here. Let's knock out the easy one first:
Q1
AGS reads the "location" of a character as the coordinates where the bottom center of the graphic is. (so say you click on a circle on the ground with your mouse then the bottom center of the characters graphic will move to that circle (in most cases the player character has feet so it looks as if his feet are at that location)). Okay - well a while back someone told me you could change this by altering the "z" property of the character. (so if you have maybe a snake for a character then you wouldn't want his tail to move to the point you click on, you'd want his head to move there.)
Anyway, can the same be done with objects? Now if i'm correct AGS does things a little different with objects. Instead of the bottom center, AGS reads the bottom left corner for object location/positioning. I'm making a set of laser beams that "fly/shoot" to whereveryou click and as of now if you click a location, ags is putting the bottom left corner of the object sprite there, not the top center like i would like. (i'd like to avoid using these lasers as a character if possible).
okay, so onto my next question:
Q2
In this first person part of the game where you're firing lasers (the lasers come from off the bottom of the screen to the target) i have a nifty little laser animation that works pretty well but the problem is if you click on a location closer to you "aka bottom of the screen" then the lasers get there faster obviously, and the animation doesnt finish before reaching the location. So i need some sort of formula that will allow me to match the distance traveled with the animation speed (so that the animation finishes as it reaches the destination).
Q1
AGS reads the "location" of a character as the coordinates where the bottom center of the graphic is. (so say you click on a circle on the ground with your mouse then the bottom center of the characters graphic will move to that circle (in most cases the player character has feet so it looks as if his feet are at that location)). Okay - well a while back someone told me you could change this by altering the "z" property of the character. (so if you have maybe a snake for a character then you wouldn't want his tail to move to the point you click on, you'd want his head to move there.)
Anyway, can the same be done with objects? Now if i'm correct AGS does things a little different with objects. Instead of the bottom center, AGS reads the bottom left corner for object location/positioning. I'm making a set of laser beams that "fly/shoot" to whereveryou click and as of now if you click a location, ags is putting the bottom left corner of the object sprite there, not the top center like i would like. (i'd like to avoid using these lasers as a character if possible).
okay, so onto my next question:
Q2
In this first person part of the game where you're firing lasers (the lasers come from off the bottom of the screen to the target) i have a nifty little laser animation that works pretty well but the problem is if you click on a location closer to you "aka bottom of the screen" then the lasers get there faster obviously, and the animation doesnt finish before reaching the location. So i need some sort of formula that will allow me to match the distance traveled with the animation speed (so that the animation finishes as it reaches the destination).