English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. AMOS

 
 
Thread Tools
Old 17 February 2019, 04:36   #1
xboxown
Registered User
 
Join Date: Dec 2012
Location: Vancouver/Canada
Posts: 676
issue with getting palette for sprite...

I have drawn the sprites (only 6 of them) in the edit object editor inside AMOS.

Then I wanted to put a sprite in the screen which is a basic square white (empty inside) at a size of 32 x 32 my sprite size and then I get the color wrong. I get the color to be orange even though I made sure it is white. Not only this sprite I have issue with but other sprites their colors come out wrong from the original color I have drawn.

i have used get sprite palette and still have the issue regardless.

Rem That is pretty much my entire engine so far! I have not done anything else.

Screen Open 1, 640, 540, 16, HiRis
Palette $0, $0, $0
Get Sprite Palette

Do
M = Mouse Key
Sprite 1, 150, 64, 1
If M = 1 then Exit
Loop


Any help on this matter will be greatly appreciate it.
xboxown is online now  
Old 17 February 2019, 05:55   #2
Samurai_Crow
Total Chaos forever!
 
Samurai_Crow's Avatar
 
Join Date: Aug 2007
Location: Waterville, MN, USA
Age: 49
Posts: 2,186
Sprites 0 and 1 share palette entries 17, 18 and 19. Either use even numbered 15 color sprites (which you have 4 of) or adjust the palette entries manually for another sprite pair.
Samurai_Crow is online now  
Old 17 February 2019, 14:32   #3
adrazar
Registered User
 
Join Date: Feb 2017
Location: Oslo
Posts: 90
Colour 1,2,3,... in the Object editor become colour 17,18,19,... if the images are used by a sprite. So you will have to customize colour 17-31 to get the colours right for sprites.
(By the way, the first number in a Sprite instruction should in general always be in the range 8-63 because sprite 0-7 have some (nasty) special properties.)

Last edited by adrazar; 17 February 2019 at 14:43.
adrazar is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Palette re-arranger? Cobe request.Apps 4 19 September 2018 16:22
Palette problems Brick Nash Coders. General 4 20 September 2017 07:39
[feature] palette Asle project.Maptapper 2 06 July 2013 02:14
All icons with same palette???? Rochabian support.Apps 6 11 January 2007 18:30
Palette Problems Locash support.WinUAE 13 21 October 2003 16:10

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 04:36.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.09735 seconds with 15 queries