Hey all, just dug out my amiga again last week and found my amos pro disk that I fancied having a crack at.
I was trying the pacman articles from CU magazine (can give link if required), I'm sure many of you are familiar with it.
The thing that is bugging me is the autoback feature with double buffering. The magazine says it is set to 0, because we will deal with screen flipping and bob updating ourselves. This is all fine and dandy, accept in true mag-style they never did include any more information on how to deal with it.
So I know I need to have commands like Screen Swap, Wait Vbl, Bob draw etc.. I just can't work out where to put them. There's none in any of the code the mag gives. The problem is when I change a tile pacman has eaten to a blank one. It just flashes! I know this is because I've change a screen while it was updating and so they don't match. At the moment I've changed the autoback to 2, but now gameplay significantly slows down when pacman is eating tiles, and I'd rather crack this screen swapping.
After reading the AMOS documentation, I know why it's flashing, I just don't know how to deal with it. The closest I've come is having my main game loop as
Do
_MOVEPACMAN
Wait Vbl
Screen Swap
Loop
But this causes the pacman bob to disappear, but you can move 'invisible' pacman around and watch the tiles disappear!
Could anyone shed some light please?