16 October 2020, 15:25 | #1 |
Registered User
Join Date: May 2019
Location: Stenungsund/Sweden
Posts: 22
|
Scroll speed?
Hi!
I'm trying to learn about scrolling. Have made a horizontal scroll in one plane with 4 colors. Works fine but the speed is way to fast. I'm not sure how to attack the problem. Should I delay the blitter in some way? Put some time delays somewhere? ..::MrGuppy |
16 October 2020, 16:21 | #2 | |
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,476
|
You probably meant one playfield and two bitplanes (or you need to explain me how to do it )
Quote:
There are many ways to do this, it depends on how you wrote your code. |
|
16 October 2020, 16:43 | #3 |
Registered User
Join Date: May 2019
Location: Stenungsund/Sweden
Posts: 22
|
Yes, one playfield and two bitplanes!
What's "sub-multiples", new word for me? |
16 October 2020, 18:37 | #4 |
Registered User
Join Date: Oct 2017
Location: Sunderland, England
Posts: 2,702
|
To move at 1/2 speed...
Code:
add.l #$8000,xPos move.w xPos,Scrolling_Position... xPos: dc.l 0 Code:
add.l #$4000,xPos move.w xPos,Scrolling_Position... xPos: dc.l 0 Code:
add.l #$2000,xPos move.w xPos,Scrolling_Position... xPos: dc.l 0 |
16 October 2020, 19:17 | #5 |
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,500
|
|
16 October 2020, 19:59 | #6 |
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,476
|
|
18 October 2020, 21:12 | #7 |
Registered User
Join Date: May 2019
Location: Stenungsund/Sweden
Posts: 22
|
Thanks for the help!
I'll try both approaches and see what will be best for me! ..::Mr Guppy |
18 October 2020, 22:31 | #8 |
Registered User
Join Date: Jun 2020
Location: Brno
Posts: 90
|
Or have hires screen for horizontal scroll, image of 2x width and enjoy "subpixel" scrolling :-) (same for vertical with interlace)
|
26 October 2020, 18:04 | #9 |
Registered User
Join Date: May 2019
Location: Stenungsund/Sweden
Posts: 22
|
Finally got the solution!
Probably there are several solutions for this problem but in this case I have set the speed for the blitter in reg. BLTCON0($dff040). You can set the speed from $1 to $f. Below I have set the speed to $1, the slowest. bsr.w BlitWait ; First, check if Blitter is busy? move.l #$19f00002,$dff040 ; $dff040 = BLTCON0, Blitter control reg 0 ; #$1xxxxxxx -> Speed, 1 to f(15) ; #$x9f0xxxx -> A source and D destination are set, B and C ignored ; #$xxxxxxx2 -> Descending mode, scrolling from right to left ; #$xxxxxxx0 -> Ascending mode, scrolling from left to right Last edited by MrGuppy; 26 October 2020 at 19:41. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Shell: Scroll Bar | AMIGASYSTEM | support.Apps | 9 | 21 September 2018 14:38 |
How to scroll horizontally? | AChristian | Coders. Asm / Hardware | 13 | 20 August 2018 17:14 |
Scroll with the mouse? | BarrySWE | support.Apps | 14 | 29 May 2012 22:16 |
CD32 flickering scroll | Amiga1992 | support.Hardware | 7 | 17 February 2012 15:03 |
help me smooth scroll | rusty71 | support.WinUAE | 7 | 21 November 2011 15:36 |
|
|