Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: galaris on Sun 11/12/2011 13:40:09

Title: how to change a character's sprite?
Post by: galaris on Sun 11/12/2011 13:40:09
I want to change one character's sprite.
how do i do that?

In addition, can i do it on default mode, or only on an empty one?
Title: Re: how to change a character's sprite?
Post by: Khris on Sun 11/12/2011 14:15:15
You can change any character's sprites at any time, regardless of the game template.

How a character appears in-game is determined by their NormalView. Look at the character's properties, note the NormalView, then open it in the Views node of the project tree.
In there you can set the sprites the character uses for standing (frame 0) and walking (frame 1 - X).
Title: Re: how to change a character's sprite?
Post by: NickyNyce on Sun 11/12/2011 15:00:23
Check out the Densming videos on Youtube. How to use AGS part 1 through 43 or something. These videos will have you making games in no time.


Title: Re: how to change a character's sprite?
Post by: galaris on Sun 11/12/2011 18:10:43
It worked, thanks!  :)
Title: Re: how to change a character's sprite?
Post by: monkey0506 on Sun 11/12/2011 19:23:55
You can also change the sprites that are assigned to a specific view at run-time by setting ViewFrame.Graphic. You have to use Game.GetViewFrame to snag a ViewFrame object, and you probably won't need to change the individual graphics at run-time (more likely you'd just want to change to a separate view with Character.LockView (temporary changes) or Character.ChangeView (permanent changes)).