animation actor
do I have a problem with the animation of my actor, when I walk towards the line I wants that it attacks towards the line and when I similar how will make towards the left??
Best Answers
-
tatiang Posts: 11,949
Are you trying to make an actor turn around? If so, you would need to have a rule that says When the actor is facing left Animate with left-facing images. -
MotherHoose Posts: 2,456
how does the Actor move? … buttonControls or motionAttributes ?
for animation Left and Right:
demo for: Graphic > Flip horizontally from false/true …
with only one set of images needed for both directions
---http://www.mediafire.com/download.php?rgel884lpf3myb9
@};- MH
-
MotherHoose Posts: 2,456
game.direction in demo:
0 = stand still
1 = face Left
2 = face Right
add a gameAttribute … boolean type … name: attack
Rule: when
Attribute: game.attack = true
--Animate: attackImages
animations occur with the correct/current Graphics.Flip …
can you upload your project? … so we can see the problem
or email to me @gmail.com?
MH
Answers