Mystic Software Forums

Mystic Software => General Discussion => Topic started by: jon on January 17, 2006, 07:10:43 PM

Title: (no subject)
Post by: jon on January 17, 2006, 07:10:43 PM
How do you use sourcelocation with an item or setimage.

eg image w/e.jpg
or item w/e.itm
Title: (no subject)
Post by: Xorlak on January 18, 2006, 11:33:16 AM
Sourcelocation() is for enemies or players in the default battle system.  So say your enemy had a cure move.  The end of your cure program might look something like this:

Code: [Select]
sourceLocation(x!, y!)
animation("cure.anm", x! - 32, y! - 32)

Or if you're using a still image:

Code: [Select]
sourceLocation(x!, y!)
savescreen()
setimagetransparent("cure.gif",x! - 32 , y! - 32, 64, 64, 255, 255, 255)
wav("cure.wav")
delay(1)
restorescreen()