Screenshot: http://screencast.com/t/j4blyXVG7cA
Here is my code that triggers it:
if value[“contents”] == “treasure” then
if(sprites[key].sequence == “closed”) then
sprites[key]:setSequence(“treasure”)–objects[1].properties.contents
elseif(sprites[key].sequence == “treasure”) then
--take it
--destroy it
sprites[key]:removeSelf() <-----THIS LINE
end
end