Ultimate Amiga

Please login or register.

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

Author Topic: Screen Scrollings?  (Read 3944 times)

0 Members and 1 Guest are viewing this topic.

Amiga Forever

  • A600
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 11
  • Generic Amiga User
Screen Scrollings?
« 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
Code: [Select]
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
Logged

Dan

  • A600
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 4
  • Amos Fan
Re: Screen Scrollings?
« Reply #1 on: December 24, 2020, 01:16:52 PM »

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.
Logged

Amiga Forever

  • A600
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 11
  • Generic Amiga User
Re: Screen Scrollings?
« Reply #2 on: January 02, 2021, 10:13:13 PM »

I have try doing on what you told me like

Load "Dragon.abk"
Get Bob Palette 1

it was the same things.

Logged

adrazar

  • A600
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 67
  • Generic Amiga User
Re: Screen Scrollings?
« Reply #3 on: January 03, 2021, 10:46:52 PM »

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.
« Last Edit: January 03, 2021, 10:56:36 PM by adrazar »
Logged
Pages: [1]   Go Up
 

TinyPortal 2.2.2 © 2005-2022