Jump to content



1

Any tricks to have objects behind and on top of the playfield?


2 replies to this topic

#1 Random Terrain ONLINE  

Random Terrain

    Visual batari Basic User

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

Posted Sun Jun 15, 2008 3:51 AM

I see that we can use CTRLPF to put all objects behind the playfield, but are there any tricks that can put the missiles behind the playfield while leaving player0 and player1 on top of the playfield?


Thanks.

#2 SeaGtGruff OFFLINE  

SeaGtGruff

    River Patroller

  • 4,543 posts
  • Location:Georgia, USA

Posted Sun Jun 15, 2008 5:20 AM

View PostRandom Terrain, on Sun Jun 15, 2008 4:51 AM, said:

I see that we can use CTRLPF to put all objects behind the playfield, but are there any tricks that can put the missiles behind the playfield while leaving player0 and player1 on top of the playfield?
No, not in batari Basic. The missiles have the same priority as the players they go with, so the only way to put the missiles behind the playfield while the players are on top of the playfield is to change the priority while the screen is being drawn-- usually on different scan lines, but you could also do it in the middle of a scan line. Either way, you would need to use some assembly coding to do it-- and in batari Basic, that would mean writing a custom kernel.

Michael

#3 Random Terrain ONLINE  

Random Terrain

    Visual batari Basic User

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

Posted Sun Jun 15, 2008 9:08 AM

OK, thanks. For the game I'm working on now, I guess I can put the missile just outside of the playfield area and I won't have to worry about it messing things up.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users