English Amiga Board


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

 
 
Thread Tools
Old 17 February 2019, 05:36   #1
xboxown
Registered User
 
Join Date: Dec 2012
Location: Vancouver/Canada
Posts: 401
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, 06:55   #2
Samurai_Crow
Total Chaos forever!

Samurai_Crow's Avatar
 
Join Date: Aug 2007
Location: Ft. Collins, CO USA
Age: 44
Posts: 1,208
Send a message via Yahoo to Samurai_Crow
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 offline  
Old 17 February 2019, 15:32   #3
adrazar
Registered User

 
Join Date: Feb 2017
Location: Oslo
Posts: 46
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 15: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 17:22
Palette problems Brick Nash Coders. General 4 20 September 2017 08:39
[feature] palette Asle project.Maptapper 2 06 July 2013 03:14
All icons with same palette???? Rochabian support.Apps 6 11 January 2007 19:30
Palette Problems Locash support.WinUAE 13 21 October 2003 17: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 19:12.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.
Page generated in 0.06006 seconds with 14 queries