Page 1 of 1

help with rotating actors

PostPosted: Mon Jul 02, 2007 3:16 pm
by mr-game
kk i did get the hang of this but then i forgot it could someone tlel em how to do it again but i need it in depth

i need one that will make it rotate 360 as the palyer walks around in ( a game where u are looking down)

one that will make the person turn around as the player goes either side of the enimy ( side scroller)

and maby say a looking straight down game type thing one say i click above him he will face that way the go there and then i click to the left of him he faces that way. i can make him go there its jsut the turn around part

ty anyone who helps

PostPosted: Mon Jul 02, 2007 4:11 pm
by Sgt. Sparky
you cannot rotate an animation in Game, you must make the rotated frames then set the animation position with the animpos varaible. :D
example,
Code: Select all
animpos = direction(x, y, getclone("enemy.0")->x, getclone("enemy.0")->y);

:D

PostPosted: Mon Jul 02, 2007 4:40 pm
by mr-game
how do i edit that code to put my peps in then?

PostPosted: Mon Jul 02, 2007 8:43 pm
by Oman