Jump to content



1

How do you reset the playfield after pfscroll?


2 replies to this topic

#1 Random Terrain ONLINE  

Random Terrain

    Visual batari Basic User

  • 20,910 posts
  • Controlled Randomness
    Replay Value
    Nonlinear
  • Location:North Carolina (USA)

Posted Sat Mar 22, 2008 12:06 AM

I discovered after scrolling the title screen that pfclear just clears the playfield. It does not also reset the playfield position after using pfscroll. The playfield for the actual game ends up in random positions vertically. It can be perfect sometimes, but most of the time some of the playfield is partly off the top of the screen.

Is there any way to force the playfield to reset to the normal position after scrolling?


Thanks.

#2 SeaGtGruff OFFLINE  

SeaGtGruff

    River Patroller

  • 4,543 posts
  • Location:Georgia, USA

Posted Sat Mar 22, 2008 1:38 AM

View PostRandom Terrain, on Sat Mar 22, 2008 2:06 AM, said:

Is there any way to force the playfield to reset to the normal position after scrolling?
Yes, if you use "playfieldpos = 8" it will reset the scroll position to normal. You can also set playfieldpos to any value from 1 to 8 to scroll the playfield that many lines-- for example, "playfieldpos = 4" will scroll 4 lines, or half of a playfield row.

Michael

#3 Random Terrain ONLINE  

Random Terrain

    Visual batari Basic User

  • 20,910 posts
  • Controlled Randomness
    Replay Value
    Nonlinear
  • Location:North Carolina (USA)

Posted Sat Mar 22, 2008 7:36 AM

View PostSeaGtGruff, on Sat Mar 22, 2008 3:38 AM, said:

View PostRandom Terrain, on Sat Mar 22, 2008 2:06 AM, said:

Is there any way to force the playfield to reset to the normal position after scrolling?
Yes, if you use "playfieldpos = 8" it will reset the scroll position to normal. You can also set playfieldpos to any value from 1 to 8 to scroll the playfield that many lines-- for example, "playfieldpos = 4" will scroll 4 lines, or half of a playfield row.
Thanks! I need to add that to the bB page.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users