The OnObjectTransition
method is detailed as follows:
OnObjectTransition
method of the engine
class. Insert a local pair of position variables and a pair of counting variables.Method OnObjectTransition:Int(transId:Int, obj:ftObject) Local xp:Int Local yp:Int Local cntX:Int Local cntY:Int
99
, and if so, get the x
and y
positions of the slot from the calling object.If transId = 99 Then xp = g.GetSlotX(obj) yp = g.GetSlotY(obj)
g.SetSlotTile(xp, yp, obj.GetTag())
cntX = g.CheckGemsX(xp, yp, obj.GetTag()) cntY = g.CheckGemsY(xp, yp, obj.GetTag())
CheckGems
again, but this time with an additional True
flag to mark the gems or have them removed.If cntX>1 Then g.CheckGemsX(xp, yp, obj.GetTag(), True) If cntY>1 Then g.CheckGemsY(xp, yp, obj.GetTag(), True) Endif Return 0 End
3.135.206.254