Jump to content
raoul632

scrooling fail -- Noob Colection

Recommended Posts

Hi there, 

i try to modify some code to create a scrool effect (i know thats sound cool), but there is only two image appear . 
 

 
x=20 : rem Counter number - when to switch to frame 2
y=40 : rem Counter number - when to switch to frame 3
z=60 : rem Counter number - when to switch to frame 4
w=80 : rem
r=100 : rem
 
main
 
COLUPF=28
COLUBK=0
 
b=b+1
 
if b>120 then b=0
 
if b=x then goto frame1
if b=y then goto frame2
if b=y + 20 then goto frame3
if b=y + 40 then goto frame4
if b=y + 60 then goto frame5
 
drawscreen
framereturn
 
goto main
 
frame1
playfield:
............XX.............X....
...........X..X............X....
..........X....X...........X....
.........X......X...............
........X........X..............
.......X..........X.............
......X............X............
.....X..............X...........
....X................X..........
...X..................X.........
..X....................X........
.X......................X.......
end
goto framereturn
 
frame2
playfield:
.........XX..........XX.........
........X..X..........X.........
.......X....X.........XX........
......X......X..................
.....X........X.................
....X..........X................
...X............X...............
..X..............X..............
.X................X.............
X..................X............
....................X..........X
.....................X........X.
end
goto framereturn
 
frame3
playfield:
....XX................XXX.......
...X..X.................X.......
..X....X..............XXX.......
.X......X.......................
X........X......................
..........X....................X
...........X..................X.
............X................X..
.............X..............X...
..............X............X....
...............X..........X.....
................X........X......
end
 
frame4
playfield:
XX....................X.........
..X...................X........X
...X..................XXX.....X.
....X..................X.....X..
.....X......................X...
......X....................X....
.......X..................X.....
........X................X......
.........X..............X.......
..........X............X........
...........X..........X.........
............X........X..........
end
frame5
playfield:
.............XX.............XX..
.............XX............X..X.
.............XX...........X....X
X........................X......
.X......................X.......
..X....................X........
...X..................X.........
....X................X..........
.....X..............X...........
......X............X............
.......X..........X.............
........X........X..............
end
goto framereturn

Share this post


Link to post
Share on other sites

i found a solution .. thats quit easy 

boot this animation look like too quick 

 

if b>240 then b=0
 
if b < 40 && b > 0 then goto frame1
if b < 80 && b > 40 then goto frame2
if b < 120 && b > 80 then goto frame3
if b < 160 && b > 120 then goto frame4
if b > 160 then goto frame5

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...