On 16 Mar 2012, at 20:09, Aleš Keprt wrote:

> I received a bunch of screen$ files in a tape file. I want to read and show 
> then at 25 fps. This is possible in emulator, because it loads files 
> immediately.
> I have got this code:
>  
> 10 poke svar &33,1
> 20 load “”screen$
> 30 pause 2
> 30 goto 20
>  
> The problem is that screen$ files have got color palette at the back so the 
> new image is first loaded and shown with old palette and then the new palette 
> is set. Please somebody help me fix this annoyance. I need to keep the 
> current image with its palette visible until the new image is read from tape, 
> and then show the new image with its palette immediately. Can this be done in 
> Sam Basic? 

You can do this in basic, with the SCREEN and DISPLAY commands.

First make sure that two screens are available for use ("OPEN SCREEN 2,4" where 
2 is the new screen number, and 4 is the required mode). Then use lines like 
"DISPLAY 1: SCREEN 2" and "DISPLAY 2: SCREEN 1" to show one screen (and its 
palette) whilst working on (loading) the other.

Andrew



Reply via email to