Hi.
My first game is in the making.
not named yet
download the 3 attachments of test.part01-03.rar below
thx to skydereign for help with the coding.
many features missing
and many fixes must be done
tell me ur opinion for the graphics so far.
Morpheas wrote:does any1 knows how does GE computes which part of the animation position is the place where all the code goes?
is it the middle of the pic. or something else ?
ex. lets say u put an actor with many pics for animation like my cannon see photo above.
is there a way to tell an actor to follow the end of the barrel muzzle whatever the rotation?
animpos=1;//number=frameint end_x = cannon.x + cos(degtorad(direction(cannon.xscreen, cannon.yscreen, xmouse, ymouse)))*30; // 30 is the radius (most likely can be width)
int end_y = cannon.y - sin(degtorad(direction(cannon.xscreen, cannon.yscreen, xmouse, ymouse)))*30; // 30 could be width
// now end_x and end_y is the position of the end of the barrelUsers browsing this forum: No registered users and 1 guest