'Instruction only valid in autotest' Error message

Started by Brick Nash, May 28, 2016, 06:53:03 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Brick Nash

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!

Volvo_0ne

Quote from: 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!

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.
Transuranic heavy elements may not be used where there is life.

SamuraiCrow


Brick Nash

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!

Quote from: SamuraiCrow on May 28, 2016, 08:30:58 PM
Topic moved for future reference.

Thanks Samuraicrow! :)

Volvo_0ne

Quote from: Brick Nash on May 28, 2016, 08:50:00 PM
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 :)
Transuranic heavy elements may not be used where there is life.