home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AMOS PD CD
/
amospdcd.iso
/
451-475
/
apd465
/
procedures
/
set_x_hotspot.amos
/
set_x_hotspot.amosSourceCode
Wrap
AMOS Source Code
|
1993-01-08
|
718b
|
18 lines
' This Procedure will move the hot spot relative to its current position.
'
' eg.
'
' HOTSPOT_REL_[2,0,-4] : This moves Sprite 2's hotspot up 4 pixels.
' HOTSPOT_REL_[1,0,2] : This moves Sprite 1's hotspot down 2 pixels.
' HOTSPOT_REL_[3,-3,0] : This moves Sprite 3's hotspot 3 pixels to the left.
' HOTSPOT_REL_[9,2,0] : This moves Sprite 9's Hotspot 2 pixels to the right.
' HOTSPOT_REL_[6,3,4] : This moves Sprite 6's Hotspot 3 pixels to the right
' and 4 pixels down.
'
'
Procedure HOT_SPOT_REL_[NUMBER,X,Y]
' Procedure written by Brett George
XX=Deek(Sprite Base(NUMBER)+6)
YY=Deek(Sprite Base(NUMBER)+8)
Hot Spot NUMBER,X+XX,Y+YY
End Proc