English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. Blitz Basic

 
 
Thread Tools
Old 29 September 2018, 23:27   #1
Havie
Registered User
 
Havie's Avatar
 
Join Date: Mar 2012
Location: UK
Posts: 1,893
Multiple Copperlists and Sprites

New question of the day!

If I set up a screen with 4 copperlists on top of each other with the required gap will each copperlist have it's own sprites or will the sprites be copperlist independent?

I ask because I am writing a game with parallax scrolling and there are separated areas of the screen (that don't overlap) that I am scrolling at different speeds but software scrolling is quite slow and CPU intensive and it would be great to hardware scroll different sections of the screen. The only way I can see to do this is to have separate copperlists and hardware scroll each one. is this even possible and how does this affect sprites?

Or is there a better way that I am not aware of?

Hope this all makes sense???
Havie is online now  
Old 01 October 2018, 22:44   #2
Daedalus
Registered User
 
Daedalus's Avatar
 
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 6,334
Sprites are per-CopList, so each CopList will have 8 independent sprites available. This means that you could have 32 sprites on screen with 4 CopLists, but each sprite will be confined to its CopList and unable to move to another (or onto the blank gap between them).
Daedalus is offline  
Old 02 October 2018, 19:33   #3
Havie
Registered User
 
Havie's Avatar
 
Join Date: Mar 2012
Location: UK
Posts: 1,893
That's what I thought - shame.

So what's the best way to do multiple scrolling zones for a parallax effect?
Havie is online now  
Old 03 October 2018, 00:16   #4
Daedalus
Registered User
 
Daedalus's Avatar
 
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 6,334
Hmmm, well without resorting to a lot of poking around in the chipset registers, the DisplayScroll command might be worth investigating. I haven't used it myself, but it allows you to position a bitmap at different positions per line. I've never used it myself, but I would suspect that it could help you with some creative bitmap arranging.
Daedalus is offline  
Old 03 October 2018, 21:10   #5
Havie
Registered User
 
Havie's Avatar
 
Join Date: Mar 2012
Location: UK
Posts: 1,893
Thanks - will have a look at this and report back.
Havie is online now  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple devices virtualnut support.Hardware 1 30 September 2012 15:35
multiple screenshots otro support.WinUAE 6 25 November 2005 20:56
multiple HDFs BippyM request.UAE Wishlist 1 24 September 2005 23:12
Multiple Harddrives Unknown_K support.Hardware 3 25 March 2005 12:28
Multiple Mice foxtwo support.WinUAE 3 17 April 2002 11:24

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 00:09.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.06949 seconds with 13 queries