20 August 2021, 15:48 | #1 |
This cat is no more
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,376
|
sprite duplication issue
Not sure it's a winuae problem but I think it is (cannot test on the real machine until september)
On my Pacman game sometimes ghosts are duplicated in the maze. Ghosts use sprites. Each ghost has its own palette so I have to use sprites 0, 2, 4, 6 (not using odd sprites for now) check video at https://eab.abime.net/showpost.php?p...9&postcount=81 a still pic where it happens too I'm not using sprite reuse in the raster frame and I only move the sprites continuously and only when vertical pos is down the screen I've zoned a "pacman.zip" where it shows too. I'm at a loss with that issue. How could I accidentally trigger sprite reuse? Last edited by jotd; 20 August 2021 at 15:54. |
20 August 2021, 16:00 | #2 |
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 54
Posts: 4,491
|
You made the sprite taller that it should be.
If you set it as h=16 the successive words need to be 0 if do not want y-multiplexing Considering that the last line of the sprite is zeroed perhaps the simplest thing is to use the EV coordinate that you now use -1. |
20 August 2021, 16:20 | #3 |
This cat is no more
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,376
|
holy crap, that fixed it (and I realize that I didn't read your post but applied some recipe that I read somewhere else but I didn't find logical
Code:
dc.l 0 incbin "frightened_ghost_white_1.bin" dc.l 0,0 <--------------- added 2 longwords and the effect disappears (sorry for hijacking winuae thread, I'll ask for thread to be moved, can a mod move that thread to coders hardware/asm?) many thanks!!! |
20 August 2021, 16:29 | #4 | |||
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 54
Posts: 4,491
|
For the usual sprites FMODE=1x, 2 words.
Quote:
Quote:
Quote:
|
|||
20 August 2021, 16:37 | #5 |
Registered User
Join Date: Sep 2017
Location: Kansas, USA
Posts: 329
|
You specify the start and stop lines in the control words, followed by the sprite data words for however many lines you've indicated the sprite is tall. It's the two words AFTER the end of the data words that matter. If they're not zeros it'll assume you're reusing the sprite and interpret them as control words for reusing that sprite, including new data as it doesn't just reuse the old data.
Last edited by Rotareneg; 20 August 2021 at 17:24. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Tracer disk duplication hardware | Bernd | MarketPlace | 7 | 14 October 2020 04:38 |
Amiga Disk Duplication (Trace Machine) | logik | project.SPS (was CAPS) | 1 | 21 November 2019 13:02 |
Settlers sprite | zdechlak | project.Sprites | 1 | 02 March 2019 10:55 |
issue with getting palette for sprite... | xboxown | Coders. AMOS | 2 | 17 February 2019 14:32 |
|
|