English Amiga Board

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

Thread Tools
Old 18 September 2018, 23:26   #1

Join Date: Jul 2016
Location: Darmstadt
Posts: 678
Attached Sprites? How does that work?

I've been reading about how it is possible to "attach" sprites and get 16 colours. I can't find out how to do this in Blitz. Presumably I have to set some register flag somewhere via a poke? Then how does the attaching actually work - do I draw sprite channels X and Y next to each other, on top of each other, or just draw one channel and the hardware automagically deals with the other?

Sorry for the barrage of confusion. I've tried to rtfm but ended up more lost than when I started.

I assume the trick to multiplex the sprites vertically also works with attached sprites? Can I um-attach them for the 2nd positioning?
E-Penguin is offline  
Old 19 September 2018, 00:46   #2
Registered User

Daedalus's Avatar
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 3,503
That's the basic idea, yes (set the required registers etc.) However, Blitz takes care of this automatically. If you create a sprite with four bitplanes instead of the normal two, it's automatically counted as an attached sprite, and from then on you can treat it just like any other sprite. The only thing to note is that you can only use sprite channels 0, 2, 4 or 6, the following odd-numbered channel is attached to the even-numbered one and so is no longer available for use.

Multiplexing will work fine, but I'm not sure about un-attaching them. I don't see why it wouldn't work to just display a two-bitplane sprite in the channel, but the registers might not be reset properly. No harm in trying it anyway to see...
Daedalus is online now  
Old 25 September 2018, 11:16   #3

Join Date: Jul 2016
Location: Darmstadt
Posts: 678
Thanks, I'll give that a go!
E-Penguin is offline  

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Blitz: Any idea why sprites won't work gazj82 Coders. Blitz Basic 12 06 October 2017 22:23
How did Amiga sprites work? Foebane Retrogaming General Discussion 13 29 May 2017 17:41
Aga Sprites Attached issue sandruzzo Coders. Asm / Hardware 11 28 April 2016 15:17
Attached sprites nirvan75 Coders. Asm / Hardware 3 27 December 2015 12:42
Amiga Coverdisks - How were they attached? bill-rhit Nostalgia & memories 23 13 February 2013 18:08

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 22:50.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.
Page generated in 0.08422 seconds with 15 queries