swift - Random Line Appearing on Moving Texture Node -


i have several texture nodes move right constantly. reason, 1 of types of texture nodes generates white line in-between , next node when moving, when moving.

enter image description here

the image 60 x 60 , 3/4 of image transparent , 1/4 coloured green color. when change image solid color @ 60 x 60 (no transparency) , run app, line disappears?

here code:

func generategroundsegment_singlesegment() {      nodesegment = skspritenode()     nodesegment.texture = arraytexturesegment[int(myelement)]     nodesegment.size.width = sizesegmentwidth     nodesegment.size.height = sizesegmentheight     nodesegment.position.x = countsegmentx * sizesegmentwidth     nodesegment.position.y = (countsegmenty * sizesegmentheight) - nodewaterlayer1_1.size.height - nodesegment.size.height/2     nodesegment.zposition = 190     //generategroundsegment_type()     nodemovingplatform9.addchild(nodesegment)  } 

the node white line child node has zposition of 0, coloured clear , node moves left. node move left child 1 other node, , node has zposition of 0 , coloured clear.

does know might causing this? though maybe image trying resize or something, why specified nodesegment width , height. have other image used, , none of them have white line appear. images 60 x 60.


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -