Ultimate Amiga
Network Boards => AMOS Programming Environment => AMOS Factory => AMOS BASIC => Topic started by: Kenan on June 29, 2013, 04:47:16 PM
-
Hello!
I'm currently reading the AMOS manual (I have a 2.0 Amos Pro) and so far couldn't find the answer to my problem. When I load up the sprite in Amos using the Sprite and Get Sprite Palette commands, the colors of the sprite are mixed up, they do not match the prefered ones in Object Editor. Same happens if I grab sprite images from an IFF file - in the Object Editor colors are fine but as soon as I load it in Amos, what was once say, a green sprite, it's now purple etc.
What am I doing wrong and how do I fix this problem?
Thanks in advance.
p.s.
Not sure if it matters, I'm running Amos on my real A1200 with an ACA1220 accelerator (hard disk install).
-
If you're using a 32 or 64 color image for your screen, palette entries 17-31 are the 15 colors in the sprite palette. The sprite palette isn't independent of the screen palette.
-
Hi there.
Sprites (Hardware sprites) use colour registers 16 to 31. Also, the first colour in each sprite is transparent so colours 16,20,24,28 are all transparent when using hardware sprites. So avoid using these colours. One way to make things easier is to draw your hardware sprites in DPaint (32 colour mode). Only use colour registers 16 to 31 while avoiding the transparent colours. Save the file as an IFF then load it in to AMOS then use the get sprite command. Use the palette command to change colours 16 to 31 to the same values in your IFF file.
There are probably easier ways to do it though. Anyone?........