Main Menu

Program from Game Makers Manual

Started by skateblind, 27 Jan, 2012, 06:39 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

skateblind

I typed the source of a screen/map scroller from the book, "Amiga Game Maker's Manual" and it doesn't not work as intended. It is meant to show a map scrolling with the use of the joystick, but the map display is not working. I have triple checked the code in the book and I have tried to fix the program myself without any success.

The tiles are made correctly, although I can't seem to paste them correctly, maybe the coords are wrong? I have tried all sorts of tricks to get it to work and nothing. I was hoping someone could take a look with fresh eyes and maybe figure it out. The AMOS file is attached, it shouldn't require any extensions, but it was made in AMOS Pro with all the updates.

If you have the book, the source code starts on page 301.

Thanks in advance.
What are you looking at?

rednova

Hi:

I just looked at the manual, and it says in the back cover
it was meant for amos basic -not amos pro-so you might be
using the wrong version of amos.

rednova
-mobilis in mobile-

Hungry Horace

Quote from: rednova on 30 Jan, 2012, 01:24 AM
Hi:

I just looked at the manual, and it says in the back cover
it was meant for amos basic -not amos pro-so you might be
using the wrong version of amos.

rednova

afaik , Amos Pro is 100% amos 1.3 code compatible. It even has a backwards compatibilty checker
Quote from: KillerGorillabecause winuae is made of code and your amiga is made of stuff


Lonewolf10

#3
Yes, Hungry Horace is correct. AMOS Pro should work with AMOS 1.3 without any problems. I have a few days off and take a look at the code to see if I can spot anything.

edit:

LOL. Easy fix mate... you'll kick yourself...

Look at MAP_INIT routine. Specifically the start of each line...

TS$="22222222222222222222222222222222222222222222"

... should be...

T$="22222222222222222222222222222222222222222222"

... you added S where it should have been just a dollar sign after the T. If it makes you feel better, I have done that plenty of times myself.


Regards,
Lonewolf10

rednova

Hi:

Geez Lonewolf, I am impressed by your knowledge of amos !!!
Cheers !!!

Rednova
-mobilis in mobile-

skateblind

ARGH ****! I searched that program for a good hour or two looking for typos or any lines I missed. Thanks mate, I really appreciate it!
I think the problem was that I had stared at that code for too long and my brain just couldn't work, which is why I needed fresh eyes. :)
What are you looking at?