Hi guys,
Apologies if this was addressed before, (i tried searching around but couldn’t find any answers) but when I tried applying the codes to do slash effect on screen (Fruit Ninja style), Im getting a whole bunch on warnings on my mac Terminal each time i swipe.
“WARNING: line.width is deprecated. Use line.strokeWidth.”
for i,v in ipairs(endPoints) do local line = display.newLine(v.x, v.y, event.x, event.y) line:setStrokeColor( 1,1,1 ) line.strokeWidth = 10 transition.to(line, { alpha = 0, width = 0, onComplete = function(event) line:removeSelf() end}) end
Originally the code was “line.width = 10” but changing it to “line.strokeWidth = 10” yields the same result as well.
It’s hard to troubleshoot my game when the entire terminal is filled with those warnings.
Can anyone help?