Hi,
This line of code seems to simply be ignored. I have a rectangle image sprite that I want to change colors when hitting the player.
The rest of the code in this if statement is executed correctly so it looks like this line is skipped or not done:
function newbadguy.sprite:collision( event )
if(event.other.type == “player”) then
event.target:setFillColor(255, 0, 0) <------doesn’t do anything.
Thanks in advance