Legomite Posted August 15, 2014 Share Posted August 15, 2014 I wrote the code from a screencast and wrote it exactly as it shows(not the quotes and spaces thought) but when I load it the loading screen it freezes. Is there any chance I'm using deprecated code?Pics are attached. Quote Link to comment Share on other sites More sharing options...
PixelPicoSean Posted August 15, 2014 Share Posted August 15, 2014 You need to create instance of a class instead of call it as a function, try this:var logo = new Logo(game.system.width / 2, game.system.height / 2); Quote Link to comment Share on other sites More sharing options...
Legomite Posted August 15, 2014 Author Share Posted August 15, 2014 You need to create instance of a class instead of call it as a function, try this:var logo = new Logo(game.system.width / 2, game.system.height / 2);Thanks! 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.