Ultimate Amiga

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Program from Game Makers Manual  (Read 3580 times)

0 Members and 1 Guest are viewing this topic.

skateblind

  • Important 'looking' person
  • Forum Mod
  • A2000
  • *****
  • Karma: 668
  • Offline Offline
  • Gender: Male
  • Posts: 509
Program from Game Makers Manual
« on: January 27, 2012, 05:39:37 PM »

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.
« Last Edit: January 27, 2012, 05:41:09 PM by skateblind »
Logged
What are you looking at?

rednova

  • A600
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 225
    • http://www.feryogi.com
Re: Program from Game Makers Manual
« Reply #1 on: January 30, 2012, 12:24:11 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
Logged
-mobilis in mobile-

Hungry Horace

  • Amorphous Blue-Blob Man
  • Site Admin
  • A4000T
  • ******
  • Karma: 307
  • Offline Offline
  • Gender: Male
  • Posts: 3,364
  • Don't forget... Ameboid's need love too!
    • AUW
Re: Program from Game Makers Manual
« Reply #2 on: January 30, 2012, 12:39:46 PM »

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
Logged
Quote from: KillerGorilla
because winuae is made of code and your amiga is made of stuff

Lonewolf10

  • AMOS Extensions Developer
  • AMOS Dev
  • A2000
  • *****
  • Karma: 3
  • Offline Offline
  • Gender: Male
  • Posts: 618
    • http://www.aliensrcooluk.com
Re: Program from Game Makers Manual
« Reply #3 on: February 14, 2012, 09:13:56 PM »

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
« Last Edit: February 15, 2012, 04:38:11 PM by Lonewolf10 »
Logged

rednova

  • A600
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 225
    • http://www.feryogi.com
Re: Program from Game Makers Manual
« Reply #4 on: February 15, 2012, 12:36:11 PM »

Hi:

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

Rednova
Logged
-mobilis in mobile-

skateblind

  • Important 'looking' person
  • Forum Mod
  • A2000
  • *****
  • Karma: 668
  • Offline Offline
  • Gender: Male
  • Posts: 509
Re: Program from Game Makers Manual
« Reply #5 on: February 15, 2012, 05:35:06 PM »

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. :)
Logged
What are you looking at?
Pages: [1]   Go Up
 

TinyPortal 2.2.2 © 2005-2022