Ultimate Amiga
Network Boards => AMOS Language Discussion => AMOS Factory => AMOS Professional Forum => Topic started by: Amiga Forever on December 24, 2020, 01:28:37 AM
-
I have managed get screen Scrollings and also character on the screen but there is one problem thought.
The background is 32 colours and the character was 8 colours(I change to 32 colours to make sure he is appear on the screen with correct colours!).
The character itself doesnt look right because maybe I havnt show full colours itself!
the code are
Screen Open 0,1008,200,32,lowres
Flash off: Curs off : Cls 0 : Hide on
Screen Display 0,118,50,320,200
Rem Load Background!
Load iff "Dragon.iff"
get palette 0
Rem put Bob Character on!
Load "Dragon.abk"
Double buffer
DX=1
Rem Showing Background and character going
Rem Back and forth
Repeat
Rem Screen Scrolling for Any Levels!
Screen Offset 0,X,0
Bob 1,125+X,35,1
Wait Vbl
X=X+DX
IF X=10
DX=1
ENDIF
IF X=280
DX=1
ENDIF
Until mousekey
End
Character problem as I dont understand why it isnt showing full colours!?
https://ibb.co/2KHdZ15
(https://ibb.co/2KHdZ15)
-
Have you tried to set the bob palette after loading the bobs?
Load "Dragon.abk"
Get Bob palette
(This may mess up the level colors, but if the bob is displayed right then you have to match the colors of the levels with the bobs.
-
I have try doing on what you told me like
Load "Dragon.abk"
Get Bob Palette 1
it was the same things.
-
The Bob is apparently still just 8 colours as you can see that it blends with the background. So I'm guessing you can get over this hurdle by regrabbing all the images in Dragon.abk from the 32-colour version of the sprite sheet.