Original Post

OK, here’s the problem: I’d like to use some sprites that have black in them. Only problem is, the background isn’t black. I was just wondering if there was a way to turn off some of the pixels in the background to make the sprite look like it has black in it.

25 Replies

That didn’t really seem to help much, I didn’t really understand anything from that. What I was hoping for were samples of code. That’s how I learn, especially something as complex as C programming language: by tweaking samples.

Like RunnerPack said, the easiest way to do it (without using any C code at all) is to set the palettes in VIDE before exporting to *.h

You can do that with the advanced map editor plugin. Just select a certain part of the map and press the little palette button to cycle through the four available palettes. You can set any individual char in the map to use any palette that way.

OK, what if you have a .h that doesn’t use a character map at all. Suppose you have this text font and you want it to follow [GPLT2]. How would I do this, or is it even possible? I’d like to make the font black in one spot and bright red in others. The default color it is is bright red, so how would I change it to black since there’s no BGMap?

If you use vbPrint or vbTextOut to display text (which you probably do), the first parameter of both specifies the BGMap onto which to put the text, so you can use the GPLT registers, and vbPrint even lets you specify the palette explicitly (though it’s used differently than vbTextOut).

I searched the development wiki and putting in vbPrint in the search bar yielded no results. I’ve been using vbTextOut, and would like to know more about the vbPrint command, like a sample line of code or something.

 

Write a reply

You must be logged in to reply to this topic.