set different animation for different direction

Game Editor comments and discussion.

set different animation for different direction

Postby UltimatHedgehog » Sat Jan 20, 2007 6:00 pm

i need to set an attack facing left or right by which way your already looking
User avatar
UltimatHedgehog
 
Posts: 325
Joined: Fri Jan 19, 2007 1:48 pm
Location: http://downloads.khinsider.com/?u=112542 plz click
Score: 10 Give a positive score

Postby makslane » Sat Jan 20, 2007 8:49 pm

Use the 'Change Animation' action.
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby UltimatHedgehog » Sat Jan 20, 2007 9:23 pm

i no i did that but i need to change to the same direction im already facing
User avatar
UltimatHedgehog
 
Posts: 325
Joined: Fri Jan 19, 2007 1:48 pm
Location: http://downloads.khinsider.com/?u=112542 plz click
Score: 10 Give a positive score

Postby Sgt. Sparky » Mon Jan 22, 2007 6:17 pm

if it is not a moving animation use this on draw actor:
Code: Select all
if(xvelocity < 0)ChangeAnimation("Event Actor", Left);
if(xvelocity > 0)ChangeAnimation("Event Actor",Right);
or somthing like that :D if does not recognise it then use the change animation var on the Car/funtion list :D hope that helps. :) :o :D
Image
Random Links:
viewtopic.php?p=19474#19474
Right now (10/14/2009) I'm working on some C++ projects, but I might be able to help if you have some Game Editor questions. :)
User avatar
Sgt. Sparky
 
Posts: 1850
Joined: Sat Oct 07, 2006 5:28 pm
Location: Somewhere out there, beneath the pale blue sky...
Score: 236 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron