Main Menu

No progress with scrolling! :(

Started by Brick Nash, 22 Jun, 2016, 12:57 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Hungry Horace

When you do get your AMOS/AMCAF setup sorted, i found a perfect Scrollign example for you to look at on this disk:

http://www.ultimateamiga.com/index.php?action=tpmod;dl=item367

Open the folder "chapter 5" and run ContinuousScroll.amos

...  if correctly modified, you could probably merge it with the tutorial program I made to get the result you are after.
Quote from: KillerGorillabecause winuae is made of code and your amiga is made of stuff


Hungry Horace

i should say, i do have a slight "hidden agenda" to getting this to work, in that I love Streets of Rage, and would love to look into adapting my (unfnished) Horace Boxing game to work in a similar style!

Quote from: KillerGorillabecause winuae is made of code and your amiga is made of stuff


ColdWarTom

I’ve made a project with a screen that is two tiles wider than the viewable area and I’m get block put blocking the bulk of the screen and bliting a new set of tiles into the invisible column on either side of the screen as needed depending which direction you’re going and it’s almost smooth. I was going to ask for help optimizing this by either just bliting the entire screen (when the level map entry for that tile wasn’t blank) or by finding a way to just speed things up. But I haven’t gotten it to run as smoothly as just scrolling the screen. So is the prevailing wisdom suggesting that I widen the screen, blit more tiles and just scroll the screen instead? Im still wrapping my head around repositioning the screen to match the position of the tiles without making it obvious that I’m doing it. So I’m not there yet. What would you suggest?

SamuraiCrow

Did you read post #2 carefully?

ColdWarTom

Yeah. I guess I’m just confirming that this is the best method. I read it a few times and then saved it into my todo list. I’m using this as my starting recipe.

My screen scrolling is tied to how close the main bob is to each side of the screen. When I offset back to wrap the screen, it sounds like I’m offsetting the main bob the same amount at the same time?

SamuraiCrow

Because this method never fully redraws the screen, you have to redraw and undraw the bobs using double buffering.  The bob command automates this process but doing synchronization manually often allows more bobs onscreen.

ColdWarTom

I’ve been pasting my icons and it’s fast but it crawls when I double buffer. How else can I populate the level? Am I double buffering wrong? I feel like I’m mixing a few methods. What’s the order of operations for a fast double buffer?

Double Buffer
Autoback 1
Blit screen
Blit bobs
Screen Swap...

Sorry. I’m not in front of my Amiga. Can anyone offer a simple snippet like the one above?

I need to review the manual but I’ve noticed that it doesn’t give examples of a few things.

selur

SCREEN SWAP is used only in Autoback 0

Autoback 1 and Autoback 2  - not allowed Screen Swap, because it is automated mode

DarkN3mo