raoul632 Posted July 31, 2019 Share Posted July 31, 2019 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 Quote Link to comment Share on other sites More sharing options...
raoul632 Posted July 31, 2019 Author Share Posted July 31, 2019 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 Quote Link to comment Share on other sites More sharing options...
+Random Terrain Posted August 1, 2019 Share Posted August 1, 2019 You might want to look at this: https://www.randomterrain.com/atari-2600-memories-batari-basic-commands.html#ongoto Quote Link to comment Share on other sites More sharing options...
raoul632 Posted August 1, 2019 Author Share Posted August 1, 2019 13 hours ago, Random Terrain said: You might want to look at this: https://www.randomterrain.com/atari-2600-memories-batari-basic-commands.html#ongoto great thanks Random !! not easy to begin Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.