1
FairyActivator = Sprite:extend {
2
onCollide = function(self, other, xOl, yOl)
5
if the.inventory.items['fairy'] then
6
the.inventory:remove('fairy')
9
local f = RealFairy:new{x = the.player.x, y = the.player.y}
12
the.player.canMove = false
14
v.tween:start(f, 'x', fairytarget.x, 5)
15
v.tween:start(f, 'y', fairytarget.y, 5):andThen(function()
16
--( -- <-- delete this
17
the.player.canMove = true
19
--f.carryingPlayer = false
21
--v.tween:start(f, 'x', fairytarget2.x, 5)
22
--v.tween:start(f, 'y', fairytarget2.y, 5)
b'\\ No newline at end of file'