Set frame sprites from with in the game?

Started by Icey, Sat 07/05/2011 21:28:24

Previous topic - Next topic

Icey

Is it possible to change the sprites that are in a characters view from with in the game?

monkey0506

Yup. Look up ViewFrame.Graphic in the manual.

Use Game.GetViewFrame, Character.View, Character.Loop, and Character.Frame to get the ViewFrame pointer.

If you set the ViewFrame.Graphic to the value of a DynamicSprite's graphic then it will only work if the DynamicSprite pointer is global.

Should be enough to get you started at least. Let us know when you have some code, working or not, and we'll help you from there as needed.

Icey


SMF spam blocked by CleanTalk