Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: CB.. on Mon 10/11/2003 20:44:29

Title: how do i remove a rawdrawn line or image?
Post by: CB.. on Mon 10/11/2003 20:44:29
after using this

RawDrawLine(0,0,160,100); or RawDrawImage(100,100,134);  

how do i then remove the line/image from the screen..?

allso on the same area can i have the game draw the line from one character to another?

thought this might be a handy way to depict some form of attack element..a bullet perhaps or an arrow..rather than using a sprite and animation..  
Title: Re:how do i remove a rawdrawn line or image?
Post by: Ishmael on Mon 10/11/2003 20:56:04
Has it got something to do with the RawSaveScreen and RawRestoreScreen commands? Are they spelled like that?
Title: Re:how do i remove a rawdrawn line or image?
Post by: CB.. on Mon 10/11/2003 21:00:13
i dunno,  i read them thru and they didn't sound likely candidates etc ..seemed to refer to the whole screen rather than the specific line or image...i should really have tried them but i must admit i wasn;t at all sure..i don't think theyre the ones ..unless i need to save the screen before using the rawdraw script then restore it again in order to remove it..sounds bit heavy going for continued and frequent use..
Title: Re:how do i remove a rawdrawn line or image?
Post by: Isegrim on Mon 10/11/2003 21:54:33
To my knowledge, there are no functions that allow you to erase specific lines or images.
I fear that all that is possible is saving the screen and restoring it at the appropriate time...
The RawDraw commands seem pretty fast, so it works quite well.
But I do not think that they are intended for more complex drawings or animations
Title: Re:how do i remove a rawdrawn line or image?
Post by: CB.. on Tue 11/11/2003 01:33:32
righto, many thanks guys  
Title: Re:how do i remove a rawdrawn line or image?
Post by: Scummbuddy on Tue 11/11/2003 16:45:05
yes, use RawSaveScreen, then do your doodles, and then RawRestoreScreen
Title: Re:how do i remove a rawdrawn line or image?
Post by: CB.. on Thu 13/11/2003 12:30:04
thanks for the confirmation SB