Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: RickJ on Sun 04/04/2004 04:41:25

Title: Is it possible to modify the a frame at runtime?
Post by: RickJ on Sun 04/04/2004 04:41:25
I thought it was possible to do this but haven't found anything in the manual.  Is it possible to change the sprite number assigned to a view/loop/frame from a script at runtime?  

Title: Re:Is it possible to modify the a frame at runtime?
Post by: Pumaman on Sun 04/04/2004 18:05:37
Not currently, no. Would this be useful?
Title: Re:Is it possible to modify the a frame at runtime?
Post by: RickJ on Sun 04/04/2004 19:31:32
I was thinking about doing a thing where you construct a character in a game.  There would be a machine with levers and buttons you use to pose a character, (kind of cyborg style) take snapshots of the poses and then assemble them for an animation sequence.   We could use something like this in the DQ games factory to illustrate the steps required in defining a character.

I suppose also such a thing could be used to impart characteristics to characters as the game progresses.  For example if a character injures his/her leg you could give him a limp by changing a couple of frames.  You could even make it progressively worse as time passes.  I know normally we just make another view but having the ability to dynamically modify the frames at run time would maybe produce interesting  results.  

I guess it comes down to how much trouble it is to implement vs how much benefit is derrived from it.  

 
Title: Re:Is it possible to modify the a frame at runtime?
Post by: Pumaman on Mon 05/04/2004 20:22:00
Interesting ideas. Would this be useful to anyone else?
Title: Re:Is it possible to modify the a frame at runtime?
Post by: Scorpiorus on Tue 06/04/2004 15:55:57
Yeah, I'd find it very handy too. Although I believe plugin API allows to change frame's pic at run-time (haven't tried it yet though) a possibility to manipulate frames in script seems very useful to me. Furthermove, I don't know if the engine currently saves frames' structure in savegames (probably not). Would be nice to have changing of frames as an official feature. :)

~Cheers