Ultimate Amiga

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: issue with getting palette for sprite...  (Read 2742 times)

0 Members and 1 Guest are viewing this topic.

xboxisfinished

  • A600
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 205
  • Generic Amiga User
    • gamemakermagazine.com
issue with getting palette for sprite...
« on: February 17, 2019, 02:52:29 AM »

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.

-----------------------------------------------------------------

Another question I have that is an enormous curiosity to me!!! The Get Shape 1,x1,x2 to y1, y2 and what the heck is this command for? When I used it..it literally changed the sprite from Editor Object itself and I have to redraw it again??!

Thanks in advance.
Logged

Volvo_0ne

  • A600
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 71
  • A1200 lover
Re: issue with getting palette for sprite...
« Reply #1 on: February 18, 2019, 06:55:58 PM »

Set your sprite colours in registers 16 thru 31
From the manual.......

15-colour Sprites.
These use colour registers 16 to 31, which may not be needed by 16-colour screens, but are vital when 32-colour and 64-colour modes are in use, ensuring that these Sprite images are.totally consistent with the screen background.

PS there is no "Get Shape" instruction in AMOS (it may be an extension command though?)
Logged
Transuranic heavy elements may not be used where there is life.
Pages: [1]   Go Up
 

TinyPortal 2.2.2 © 2005-2022