English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. AMOS

 
 
Thread Tools
Old 04 September 2011, 02:32   #21
Amiten
Banned
 
Join Date: May 2011
Location: Spain
Posts: 519
Hello,

this thread is very interesting and is exactly what I'm looking, I have the same problem with the scroll in Amos, I have an image of 1024 pixels in length and reaches the end offset occurs when the image is distorted, someone has managed to repeat the scroll without distortion appears? to scroll VERTICAL

horizontal scroll offset no problem with.

would be very grateful for someone to help me.

can see my project here
[ Show youtube player ]
Amiten is offline  
Old 09 September 2011, 05:36   #22
Samurai_Crow
Total Chaos forever!

Samurai_Crow's Avatar
 
Join Date: Aug 2007
Location: Ft. Collins, CO USA
Age: 45
Posts: 1,295
Send a message via Yahoo to Samurai_Crow
The maximum scrolling width for AmosPro is the one supported by Kickstart 1.3: 1024 pixels. It wasn't until Kickstart 2.0 that scrolling beyond that distance was supported by the Kickstart. AmosPro, being written for a Kickstart 1.3 based system doesn't have the facilities to do that.
Samurai_Crow is offline  
Old 09 September 2011, 13:08   #23
Retro1234
Boo

Retro1234's Avatar
 
Join Date: Jun 2006
Location: 5150
Posts: 4,353
But VERTICAL you can open a screen of 1024 but BOBs become distorted after about 500 I dont think this is just an AMOS problem.

using one image/iff instead of tiles is unusual in games instaed of using tiles/Maps.

probably best to use Wrap around like described.

Also Pasting a Tile at the same point as a enemie/BOB I get graphics error any ideas?

But even so using one large screen would make life easyier for reasonable sized screens can anyone name some Commercial games using one large screen insted of Wrap around?

Last edited by Retro1234; 09 September 2011 at 13:19.
Retro1234 is offline  
Old 12 September 2011, 04:00   #24
Codetapper
2 contact me: email only!

Codetapper's Avatar
 
Join Date: May 2001
Location: Auckland / New Zealand
Posts: 3,160
Chris Sorrell said that James Pond used a single large screen for all the levels.
Codetapper is offline  
Old 12 September 2011, 06:20   #25
Retro1234
Boo

Retro1234's Avatar
 
Join Date: Jun 2006
Location: 5150
Posts: 4,353
Thanks
"JP1 the scrolling system is actually fairly low tech - I just allocated enough screen memory to contain the entire play area. That's why some levels are wide but shallow and others are less wide but deeper"

None of the Maps seem that big below 1024*1024
Retro1234 is offline  
Old 16 March 2015, 17:49   #26
DJ METUNE
 
Posts: n/a
Question

Quote:
Originally Posted by Samurai_Crow View Post
This one loads a Tome formatted tile map and displays it...without using the Tome commands because they're just too slow. BTW, I didn't check the code or try to run it so there may still be mistakes in it.

Code:
Screen Open 1, 672, 256, 32, lowres
Flash off
Curs off
Cls 0
Load "tilemap.abk",6: Rem Load the map
Load "tiles.abk",2: Rem load the tile images as an icon bank
Get Icon Palette
Rem get size of map from tilemap.abk
T=Start(6)
MAXX=Deek(T)
MAXY=Deek(T+2)

Rem Draw the initial map starting at top left
Screen Hide
For Y=0 to 256 Step 16
  ROW=Y*MAXX+4+T : Rem add 4 to skip size header
  For X=16 to 336 Step 16
    Paste Icon X,Y,Peek(ROW+X/16)
  Next X
Next Y
Screen Show

Rem Scroll right until you get to the end of the map
MAXXP=MAXX*16-320 : Rem Maximum pixel coordinate
For X=0 to MAXXP
  LX = X mod 320
  Y=X and 15 : Rem Pixel offset and tile row
  If Y=0
    Rem This code is only accessed on even multiples of 16 pixels
    X1=LX
    X2=X1+336 : Rem 336=320+16
    COL1=X/16+T+4
    COL2=COL1+21 : Rem 21=336/16
  Endif
  YT=Y*16
  ROW=Y*MAXX
  Rem If you scroll faster than 1 pixel per frame
  Rem then you have to plot that many more tiles
  Paste Icon X1, YT, Peek(COL1+ROW)
  Paste Icon X2, YT, Peek(COL2+ROW)
  Wait Vbl
  Screen Offset LX+16, 0
Next X
Screen Close 1
I tried your example but AmosPro says Syntax error and pointing to MAXX=Deek(T) for some reason.

I'm quite a newbie at Amos so I can't figure out what's wrong with that line of yours.

What could I change that into?

I've made a map of some tiles using TOME IV and I just started to try to figure out how to view it. Screen offset is the way to go so I would really like to be able to use that before anything else.

Thank you!
 
Old 16 March 2015, 19:29   #27
Lonewolf10
AMOS Extensions Developer
Lonewolf10's Avatar
 
Join Date: Jun 2007
Location: near Cambridge, UK
Age: 40
Posts: 1,920
AMOS converts

Code:
MAXX=Deek(T)
into

Code:
MaxX=Deek(T)
as the variable name clashes with the Max function. The easiest way to fix this is to add an underscore to all occurences of MAXX, for example

Code:
_MAXX=Deek(T)
Lonewolf10 is offline  
Old 17 March 2015, 11:05   #28
DJ METUNE
 
Posts: n/a
OK. Thank you very much! :-) I'll try that.
 
Old 18 March 2015, 23:14   #29
Photon
Moderator

Photon's Avatar
 
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 4,766
Moved this thread to the Coders.Languages.AMOS forum. Please post in the designated forums in future! Carry on
Photon is offline  
Old 19 March 2015, 01:37   #30
Bastich
Registered User

Bastich's Avatar
 
Join Date: Jul 2011
Location: UK
Posts: 335
From what I can remember from my AMOS days screen offset basically did a hardware scroll around a large bitmap by just altering the screen pointer/hardware position. This is effectively cost free compared to the scroll command which basically did a bitmap copy. I never managed to get an infinite scroll working with more than around 8 colours as AMOS is just not quick enough. This and AMOS being interpreted not compiled was one of many reasons why I moved onto Blitz Basic 2. The AMOS compiler that came out later was terrible compared to BB2 but at least gave a moderate speed boost.
Bastich is offline  
Old 19 March 2015, 18:06   #31
Amiten
Banned
 
Join Date: May 2011
Location: Spain
Posts: 519
Reading this post again , the cuestion are:

¿is posible to have a bigger scroll (Tiles one) than 1024 pixel in amos pro 2.0?

if yes please tell us how to...

all the best
amiten
Amiten is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
side scrolling, ball kicker platform game AnonA Looking for a game name ? 15 17 August 2010 21:15
Single screen platform games onkelarie Nostalgia & memories 34 07 June 2010 13:10
WHDLoad - NTSC and screen offset Anubis project.WHDLoad 4 27 January 2010 21:20
how to grab screen of AMOS programs... HexeH support.Apps 2 11 June 2004 12:53
Just can't get smooth scrolling Bobbin support.WinUAE 0 23 November 2002 00:52

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 22:29.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.
Page generated in 0.07702 seconds with 13 queries