YouGroove Posted October 16, 2015 Posted October 16, 2015 The image is not colored when it is drawn on screen. Here is my PostRender code : if self.drawAttack then context:SetBlendMode(Blend.Alpha) local posX = math.floor((context:GetWidth() - self.imageAttack:GetWidth()))/2 local posY = math.floor((context:GetHeight() - self.imageAttack:GetHeight()))/2 context:DrawImage(self.imageAttack, posX, posY) context:SetBlendMode(Blend.Solid) end Quote Stop toying and make games
Admin Posted October 16, 2015 Posted October 16, 2015 Maybe you need to call context:SetColor(1,1,1,1) before drawing? 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.