Rick Posted March 27, 2013 Share Posted March 27, 2013 I have an image of a heart (for player life). I draw 3 of them. The first one is transparent in the right places, but the other 2 are not. Not sure why. // loading the heart in App:Start() self.heartImage = Texture:Load("UI/heart_64.tex") // drawing in App:Loop() self.context:SetBlendMode(Blend.Alpha) x = 0 for i = 0, self.heartCount - 1 do self.context:DrawImage(self.heartImage, x, 35) x = x + self.heartImage:GetWidth() end self.context:SetBlendMode(Blend.Solid) --Refresh the screen self.context:Sync(true) On my Samsung tablet it's displayed correctly though, so seems like a PC thing. Link to comment Share on other sites More sharing options...
Josh Posted April 2, 2013 Share Posted April 2, 2013 Confirmed. My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Recommended Posts