how to change a character's sprite?

Started by galaris, Sun 11/12/2011 13:40:09

Previous topic - Next topic

galaris

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?
"A compass is a magnetized bit of metal, floating in a solution"

Khris

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).

NickyNyce

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.



galaris

"A compass is a magnetized bit of metal, floating in a solution"

monkey0506

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)).

SMF spam blocked by CleanTalk