Author Topic: (no subject)  (Read 1156 times)

jon

  • Member
  • *
  • Posts: 1
    • View Profile
(no subject)
« 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
« Last Edit: December 31, 1969, 06:00:00 PM by jon »

Xorlak

  • Administrator
  • Member
  • *****
  • Posts: 2225
    • View Profile
    • http://darkagegames.net
(no subject)
« Reply #1 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()
« Last Edit: December 31, 1969, 06:00:00 PM by Xorlak »