Ultimate Amiga
Network Boards => AMOS Programming Environment => AMOS Factory => AMAL => Topic started by: Brick Nash on May 28, 2016, 06:53:03 PM
-
Ploughing on with Amos and I'm at the Amal section of the book now.
Managed to load my image to my bob and all is well but the book tells me to type in this in direct mode amal 1, "Anim 0,(1,5)(2,5)(3,5)" but I get an error message saying 'Instruction only valid in autotest'.
The book just continues on as if this message doesn't appear and I can't see anything in the help file about this.
Thanks!
-
Ploughing on with Amos and I'm at the Amal section of the book now.
Managed to load my image to my bob and all is well but the book tells me to type in this in direct mode amal 1, "Anim 0,(1,5)(2,5)(3,5)" but I get an error message saying 'Instruction only valid in autotest'.
The book just continues on as if this message doesn't appear and I can't see anything in the help file about this.
Thanks!
Make sure you typed it EXACTLY as written here, Because AMAL only uses the UPPERCASE letters as commands, lowercase is ignored completely
or try amal 1, "A 0,(1,5)(2,5)(3,5)"
Also make sure you have all three frames of animation in your sprite/bob bank.
-
Topic moved for future reference.
-
Make sure you typed it EXACTLY as written here, Because AMAL only uses the UPPERCASE letters as commands, lowercase is ignored
[/quote]
Ahhh got it.
I managed to sort the example shown above (somehow) but it happened again in a shortened bit of code which included a variable A$ and it was a mistake in the definition of the variable way back in the code where I'd spelled the Anim command with a lower case 'a'.
Looking in the wrong place.
Thanks for the help, I wouldn't have remembered to check for upper/lower case mistakes if it weren't for your reminder!
Topic moved for future reference.
Thanks Samuraicrow! :)
-
Make sure you typed it EXACTLY as written here, Because AMAL only uses the UPPERCASE letters as commands, lowercase is ignored
Ahhh got it.
I managed to sort the example shown above (somehow) but it happened again in a shortened bit of code which included a variable A$ and it was a mistake in the definition of the variable way back in the code where I'd spelled the Anim command with a lower case 'a'.
Looking in the wrong place.
Thanks for the help, I wouldn't have remembered to check for upper/lower case mistakes if it weren't for your reminder!
Glad you got it sorted, and do not forget that you can also use AMAL to control things other than bobs/sprites & screens at good speed :)