I have a normal collision detection listener set up and I just want whatever I collide with to fade out. Why can’t I do something like this?
local function enemyCollides (event) if event.phase=="began" then print(event.target.type) transition.to(event.target.type ,{time=2000,alpha=0}) end end
When I print event.target.type it’s the name of the target that should fade out but yet it doesn’t fade that object out in the transition to. Not sure why?