17 February 2019, 04:36 | #1 |
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. |
17 February 2019, 05:55 | #2 |
Total Chaos forever!
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.
|
17 February 2019, 14:32 | #3 |
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. |
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 |
|
|