home *** CD-ROM | disk | FTP | other *** search
/ AMOS PD CD / amospdcd.iso / sourcecode / various / set_x_hotspot.amos / set_x_hotspot.amosSourceCode
AMOS Source Code  |  1993-01-08  |  662b  |  13 lines

  1. ' This Procedure will move the hot spot relative to its current position.
  2. ' HOTSPOT_REL_[2,0,-4] : This moves Sprite 2's hotspot up 4 pixels.
  3. ' HOTSPOT_REL_[1,0,2] : This moves Sprite 1's hotspot down 2 pixels. 
  4. ' HOTSPOT_REL_[3,-3,0] : This moves Sprite 3's hotspot 3 pixels to the left. 
  5. ' HOTSPOT_REL_[9,2,0] : This moves Sprite 9's Hotspot 2 pixels to the right. 
  6. ' HOTSPOT_REL_[6,3,4] : This moves Sprite 6's Hotspot 3 pixels to the right  
  7. '                       and 4 pixels down. 
  8. Procedure HOT_SPOT_REL_[NUMBER,X,Y]
  9.    'written by Brett George   
  10.    XX=Deek(Sprite Base(NUMBER)+6)
  11.    YY=Deek(Sprite Base(NUMBER)+8)
  12.    Hot Spot NUMBER,X+XX,Y+YY
  13. End Proc