YouGroove Posted July 12, 2013 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
Rick Posted July 12, 2013 Posted July 12, 2013 http://www.leadwerks.com/werkspace/page/documentation/_/command-reference/context/contextdrawtext-r731 Quote
YouGroove Posted July 12, 2013 Author 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
Rick Posted July 12, 2013 Posted July 12, 2013 Inside each entity script put your drawing inside: function Script:PostRender() App.context:DrawText(blahblahblah) end 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.