corona icon indicating copy to clipboard operation
corona copied to clipboard

[PLATFORM]: LineObject stroke not working correctly with ImageSheetPaint

Open jcbk101 opened this issue 3 years ago • 0 comments

Describe the bug When creating an ImageSheetPaint to attach to a line object's stroke, unexpected results occur. But when a file is used, it "works".

To Reproduce Steps to reproduce the behavior: line = display.newLine( objectGroup, points[1].x, points[1].y, points[2].x, points[2].y ) line.strokeWidth = 8

local paint = { type = "image", filename = "rope.png" } line.stroke = paint

The above "works" enough... But the below does not produce anything other than disappearing lines.

local paint = { type = "image", sheet = imageSheet, frame = 1 } line.stroke = paint

jcbk101 avatar Jul 07 '22 23:07 jcbk101