Retro Lord Posted January 26, 2015 Share Posted January 26, 2015 I find it hard to get a grasp of pfscroll. I can get the playfield to jerk about but that's it. How can I make it scroll up or down properly? if joy0up then pfscroll up if joy0down then pfscroll down if playfieldpos <> 8 then goto __Skip_Draw temp5 = rand : temp6 = rand/2 if temp5 > temp6 then var44 = 0 : var45 = 0 : var46 = 0 : var47 = 0 : goto __Skip_Draw var44 = rand : var45 = rand : var46 = rand : var47 = rand __Skip_Draw Quote Link to comment Share on other sites More sharing options...
+Random Terrain Posted January 26, 2015 Share Posted January 26, 2015 If you want a constant scroll, try this: _ pfhline 8 5 23 on COLUBK = $C4 COLUPF = $CE __Main_Loop pfscroll down drawscreen goto __Main_Loop Quote Link to comment Share on other sites More sharing options...
Retro Lord Posted February 2, 2015 Author Share Posted February 2, 2015 Hm, okay. But what does the numbers mean? Quote Link to comment Share on other sites More sharing options...
+Random Terrain Posted February 2, 2015 Share Posted February 2, 2015 Hm, okay. But what does the numbers mean? Are you talking about the numbers in pfhline? If you go to the index, scroll down to pfhline and click on it, you can learn all about it. If you are talking about the numbers used with COLUBK and COLUPF, you can do the same thing. Go to the index and scroll down to COLUBK and COLUPF and click on them to learn more about them. Quote Link to comment Share on other sites More sharing options...
Retro Lord Posted February 2, 2015 Author Share Posted February 2, 2015 Ah, cool. That cleared it up, thanks! Quote Link to comment Share on other sites More sharing options...
Retro Lord Posted February 3, 2015 Author Share Posted February 3, 2015 I have another question related too pfscroll. (I think) How would I go about if I wanted a racetrack. And I want 3 playfield, one being a straight road, the second being a forked road and the third being something else, and having 1 of them randomly selected and coming in after the current playfield? 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.