Ultimate Amiga

Please login or register.

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

Author Topic: Scrolling issue  (Read 4114 times)

0 Members and 7 Guests are viewing this topic.

Kaligon75

  • A600
  • *
  • Karma: 1
  • Offline Offline
  • Gender: Male
  • Posts: 16
  • Generic Amiga User
Scrolling issue
« on: August 20, 2016, 08:25:38 PM »

Hi guys!!! I think Amos Pro is a very good language but often there are a lot of problems when i work on it. I'm learning Amos Pro to make games and a frequent problem concerns the scrolling of the screen. I like very much shooter games like Rtype, ProjectX and Xenon 2 and a lot of arcade games, so I'm trying to create an Amiga version of Phoenix and a shooter game with horizontal scrolling invented by me. In both games, when I test the scrolling, all sprites scroll together with background and I don't can separate them unless I use two different screens, one for the background and one for sprites but it happens that one covers the other so I can't find a solution.
Logged

Volvo_0ne

  • A600
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 71
  • A1200 lover
Re: Scrolling issue
« Reply #1 on: August 21, 2016, 05:51:19 PM »

It's all to do with timing...

1)clear sprites/bobs

2)scroll

3)re-draw sprites/bobs
4)wait for screen refresh
5)repeat

Sounds easy, but in practice there are many other things to consider, but it's a start.
Logged
Transuranic heavy elements may not be used where there is life.

Kaligon75

  • A600
  • *
  • Karma: 1
  • Offline Offline
  • Gender: Male
  • Posts: 16
  • Generic Amiga User
Re: Scrolling issue
« Reply #2 on: August 25, 2016, 07:49:23 PM »

Thanks for you suggestions but I solved the problem using the "sprite" command instead of the "bob" command. In fact with sprite command the sprites are not attached on the background but there is another different issue: when I open a screen with an iff background and then put a sprite, the color palette of the sprite or background is altered if compared to the original.
Logged

Volvo_0ne

  • A600
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 71
  • A1200 lover
Re: Scrolling issue
« Reply #3 on: August 26, 2016, 09:25:45 PM »

Thanks for you suggestions but I solved the problem using the "sprite" command instead of the "bob" command. In fact with sprite command the sprites are not attached on the background but there is another different issue: when I open a screen with an iff background and then put a sprite, the color palette of the sprite or background is altered if compared to the original.

It may be worth a look at the manual regarding sprite palettes, they can be quite tricky with their colour registers and even worse if it's a work in progress with a set palette (thats why I avoid them if possible)
Logged
Transuranic heavy elements may not be used where there is life.

Hungry Horace

  • Amorphous Blue-Blob Man
  • Site Admin
  • A4000T
  • ******
  • Karma: 307
  • Offline Offline
  • Gender: Male
  • Posts: 3,364
  • Don't forget... Ameboid's need love too!
    • AUW
Re: Scrolling issue
« Reply #4 on: August 27, 2016, 11:15:48 AM »

Yeah, using colours 16-32 is generally necessary ... There is an element of palette management needed I cannot recall atm!

(Can't look it up while on the train)
Logged
Quote from: KillerGorilla
because winuae is made of code and your amiga is made of stuff

Volvo_0ne

  • A600
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 71
  • A1200 lover
Re: Scrolling issue
« Reply #5 on: August 28, 2016, 09:35:31 PM »

Yeah, using colours 16-32 is generally necessary ... There is an element of palette management needed I cannot recall atm!

(Can't look it up while on the train)

Come to think of it, there are lots of threads on here & other forums discussing this very issue.

try a search for "sprite palette" or "sprite colours"
Logged
Transuranic heavy elements may not be used where there is life.
Pages: [1]   Go Up
 

TinyPortal 2.2.2 © 2005-2022