Is this possible in TGB?
by Robert Carroll · in Torque Game Builder · 10/14/2009 (9:46 pm) · 3 replies
I have a platformer where a guy has a gun. And you us the mouse to aim. I was wondering I've got all the anamation down except for one, When He walks bakwards (From the way his guns facing) he dose a moon walk. Since I cant' simplely use the flipX i need somthing that plays and anamtion based on the facing of an object.
About the author
Stay Up all night playing PS3 ;) add me PSN: RCBASEBALL13.
#2
10/14/2009 (11:48 pm)
I can just reverse the anamation, but I can't think of a way to make it play when hes facing the mouse but moving backwards. If you've ever played a game sereis on the internet called Thing Thing thats Kinda what I want to do.
#3
If you're walking left but the mouse is bigger, you're going backwards... same for if you're walking right but the guy's X is bigger.
Not what you're looking for?
10/15/2009 (6:38 pm)
Could you not just compare the sceneWindow2D.getMousePosition() with the guy.getposition() to see which X is bigger?If you're walking left but the mouse is bigger, you're going backwards... same for if you're walking right but the guy's X is bigger.
Not what you're looking for?
Associate William Lee Sims
Machine Code Games