Jump to content

Photo

Setting pfcolors programmatically


3 replies to this topic

#1 jeffry OFFLINE  

jeffry

    Space Invader

  • 15 posts

Posted Sat Feb 17, 2018 11:14 AM

Hello,

 

Is there a way to set the pfcolors programmatically? (with variables instead of hard coding it)

 

I would like to be able to change them based on variables in the game. 

Everything I try either doesn't compile or displays a puke color. 

 

Does anyone know how to accomplish this?

Is there any other commands I could use to achieve this effect?

 

Thanks in advanced for any help or clues that might get me on the right path.

 



#2 Random Terrain OFFLINE  

Random Terrain

    Visual batari Basic User

  • 28,779 posts
  • Controlled Randomness
    Replay Value
    Nonlinear
  • Location:North Carolina (USA)

Posted Sat Feb 17, 2018 11:23 AM

This thread might be helpful:

atariage.com/forums/topic/112423-pfcolors-and-pfheights-together-in-ram/



#3 jeffry OFFLINE  

jeffry

    Space Invader

  • Topic Starter
  • 15 posts

Posted Sat Feb 17, 2018 11:18 PM

Thanks! This looks promising.

 

I was using DPC+ so I have to tweak a little but i think I can get this will work for me.

Thanks!!!!!!!!!!!!!



#4 jeffry OFFLINE  

jeffry

    Space Invader

  • Topic Starter
  • 15 posts

Posted Sun Feb 18, 2018 4:44 AM

Thanks again!!!  I was able to use the URL you gave to get my game working ... THANKS!!!!!!!!!!!!!!






0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users