[FIXED] Adding image-stroke to a line object not possible

It looks like the line object doesn’t currently support  an image stroke like this:

local bLine = display.newLine(10,90,100,90); bLine.stroke = {type="image", filename="img/bumpy-brush.png"}; bLine:setStrokeColor(0.5, 0.5, 0.5); bLine.strokeWidth = 14;

I guess that it’s planned to be supported?

Yes, it should be supported. We’ll look into this.

A fix for this problem will be included in the next Graphics 2.0 seed. Thanks!

Yes, it should be supported. We’ll look into this.

A fix for this problem will be included in the next Graphics 2.0 seed. Thanks!

edit: Sorry it does work (was targetting the image location correctly). Takes a bit of fine-tuning when it comes to getting the best looking stroke image as seems that strokewidth works a bit like x/yScale, hence if you set strokeWidth=2 it will enlarge your stroke image by 2. Anyhoo, perfect for generating skid marks!

yeah that’s a bummer, was just trying to do the same but the stroke for a line remains as solid based on the strokewidth. Any idea when its coming into the next build? (right now using .2100 and still doesn’t work). Cheers!

I believe the fix that Albert is talking about has been in place for several months.

Rob

edit: Sorry it does work (was targetting the image location correctly). Takes a bit of fine-tuning when it comes to getting the best looking stroke image as seems that strokewidth works a bit like x/yScale, hence if you set strokeWidth=2 it will enlarge your stroke image by 2. Anyhoo, perfect for generating skid marks!

yeah that’s a bummer, was just trying to do the same but the stroke for a line remains as solid based on the strokewidth. Any idea when its coming into the next build? (right now using .2100 and still doesn’t work). Cheers!

I believe the fix that Albert is talking about has been in place for several months.

Rob