Jump to content
IGNORED

I don't understand pfscroll


Retro Lord

Recommended Posts

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
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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?

Link to comment
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.
Note: Your post will require moderator approval before it will be visible.

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...