Amos Professional Manual  Contents  Index

AMAL


C
value=Col(number)

This function returns the status of the object whose number is specified, after a BC or SC function. If the object has collided with another object, a value of -1 (true) is returned, otherwise 0 (false) is given.

J0
bit-map=J0

The J0 function tests the status of the right joystick, and returns a bit-map containing its report. Please see JOY for a full explanation.

J1
bit-map=J1

The J1 function tests the left joystick and returns a bit-map containing its current status. Please see JOY for a full explanation.

K1
value=K1

The K1 function checks if the left mouse key has been pressed, and returns a value of -1 (true) or 0 (false).

K2
value=K2

The K2 function checks the right mouse key. If it has been pressed a value of -1 (true) is returned, otherwise 0 (false) is given.

Sc
value=Sprite Col(number,first,last)

SC is identical to the SPRITE COL Basic instruction. It checks the single Sprite whose number is specified for collisions with other Sprites, whose numbers are given as the first and last in the range to be monitored. If a collision is detected, a value of -1 (true) is returned, otherwise 0 (false) is given.

This instruction may not be performed within an interrupt, so it is only available when AMAL routines are directly executed from Basic using the SYNCHRO command.

VU
intensity=VU(voice)

The VU function samples one of the sound channels and returns the intensity of the current voice. This information can then be used to animate objects in synchronisation to sound.

Back    Next
07.06.09