Author: 0 (0)
Date: -0
Hello. I am currently using STOS to build some levels using its MAP editor.
When displayed on the screen i can only get the level to flip between rooms rather than scroll smoothly through each one. I have some code given to me to display the rooms 1 by 1. Is there anything i can add in order to scroll the screen?
Thanks in advance.
Here is the code i use to display the screens:
50000 restore 50005 : read nl,nroom : if room>nroom or room<=0 then boom : return
50001 restore 50010+(room-1)*nl : read gridw,gridh : cls physic : cls back : for I=0 to 319/gridw : for j=0 to 199/gridh:read s : if s>0 then sprite 1,i*gridw+1,j*gridh,s:update : put sprite 1
50002 next j : next i : wait vbl : sprite 1,100,-100,1 : return
P.S The data for the rooms is continuous.
|