YouGroove Posted July 12, 2013 Share Posted July 12, 2013 I can't display text simply on a Lua project. code not working on Lua project : local window=Window:GetCurrent() self.context=Context:Create(window) the second line is what is problematic. Quote Stop toying and make games Link to comment Share on other sites More sharing options...
Rick Posted July 12, 2013 Share Posted July 12, 2013 http://www.leadwerks.com/werkspace/page/documentation/_/command-reference/context/contextdrawtext-r731 Quote Link to comment Share on other sites More sharing options...
YouGroove Posted July 12, 2013 Author Share Posted July 12, 2013 Thanks i put code elsewhere than App.lua So App.lua can't access Player.lua and display it's values variables ? Quote Stop toying and make games Link to comment Share on other sites More sharing options...
Rick Posted July 12, 2013 Share Posted July 12, 2013 Inside each entity script put your drawing inside: function Script:PostRender() App.context:DrawText(blahblahblah) end 1 Quote Link to comment Share on other sites More sharing options...
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.