English Amiga Board


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

 
 
Thread Tools
Old 19 March 2023, 08:56   #1
thyslo
Registered User
 
Join Date: Apr 2018
Location: Germany
Posts: 189
AMAL Beginner questions

I'm playing around with AMOS Pro and have some problems to understand the AMAL sub language. In AMOS Pro manual, p. 07.06.07 is an example of a movement pattern:

Code:
Load "AMOSPro_Tutorial:Objects/Sprites.abk" : Get Sprite Palette 
SP=4 : Sprite SP,128,100,7
C$="For R0=1 To 300; Let X=X+1; Next R0;" 
Amal SP,C$ : Amal On SP
Direct
This moves the sprite horizontally towards the right border.

Now I tried to get this movement repeated endlessly by changing the AMAL string in

Code:
C$="Start: For R0=1 To 300; Let X=X+1; Next R0; Jump Start"
But it didn't work.

Does anyone know how to repeat a simple move forever (or until a termination condition)?
thyslo is offline  
Old 19 March 2023, 13:24   #2
Honitos
Registered User
 
Honitos's Avatar
 
Join Date: Nov 2019
Location: Celle / Germany
Posts: 145
I guess you just have to reset the X-Position of the Sprite.
It does not work because the variable X is increased endless.
Honitos is offline  
Old 19 March 2023, 19:16   #3
thyslo
Registered User
 
Join Date: Apr 2018
Location: Germany
Posts: 189
This solved it, thank you:-)
thyslo 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
A couple beginner questions Nyala Coders. Asm / Hardware 11 25 December 2022 01:16
Couple of beginner questions Laika New to Emulation or Amiga scene 3 08 March 2019 13:10
Beginner questions: text display in an Intuition window and scrolling thyslo Coders. System 6 07 October 2018 18:47
Amiga Emulation Beginner: Questions beaglelover New to Emulation or Amiga scene 1 18 February 2016 04:11
5 more beginner questions ( A 3000) amiganer support.Hardware 20 15 August 2007 07:45

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 18:12.

Top

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