japanese 2021-09-04 06:49
how to scroll more smoothly and slowly?
i want scroll BG as if the character is falling.
Dan 2021-09-04 07:24 (Edited)
Add this after the TOUCHSCREEN
```
GLOBAL BGT
BGT=TIMER
```
Then change the sub fall:
```
SUB FALL
if (timer-bgt)>6 then
BG SCROLL 0,0 TO 10,8 STEP 0,-1
BGT=TIMER
End If
END SUB
```
or, you could use scroll instead of BG Scroll but that would need some changes.
Add after BGT=TIMER :
SCRY=-50
Then change the function to :
```
SUB FALL
if (timer-bgt)>1 then
SCROLL 0,0,SCRY
SCRY=SCRY+1
if scry>120 then scry=-50
BGT=TIMER
End If
END SUB
```
and change the line in the main loop to:
```
IF CELL.C(SX\16,(66+SCROLL.Y(0))\16)=0 THEN CALL FALL
```
japanese 2021-09-04 08:19
can i scroll BG one by one pixel?
japanese 2021-09-04 08:27
oh,below one is it i wanted.
thanks