x


the sprite manager?

hey, i got a game object that has a few animations into it,and i was woundering, how can i change the animations with a code/script, for example, when i press left/right/up/down i want it to go to the "walk" animation,and when theese keys are not pressed i want it to go to the "stand" animation, and im talking about doing this in the sprite manager,how can i do it?

*when i write PlayAnim(0); it gives me an error says: "Assets/Scripts Folder/Player's Scripts/spriteManageCall.js(3,9): BCE0005: Unknown identifier: 'PlayAnim'."

(im trying to controll the gameObject with a java script inside of it-a component that i added to the gameObject)

how to fix it?

thanks in advance

more ▼

asked Apr 20 '11 at 06:02 PM

Shizzle gravatar image

Shizzle
11 7 7 8

(comments are locked)
10|3000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x3922
x1070
x72
x51

asked: Apr 20 '11 at 06:02 PM

Seen: 1207 times

Last Updated: Apr 20 '11 at 06:02 PM