paloskin Posted August 26, 2013 Share Posted August 26, 2013 Hi! This my code:<script> var stage = new PIXI.Stage(0x66FF99, true); var renderer = PIXI.autoDetectRenderer(400, 300); document.body.appendChild(renderer.view); stage.click = function () { alert('asd') } function gameLoop() { requestAnimFrame( gameLoop ); renderer.render(stage); } requestAnimFrame( gameLoop ); </script>but click callback do not work. Are there any ideas? Quote Link to comment Share on other sites More sharing options...
enpu Posted August 26, 2013 Share Posted August 26, 2013 http://www.html5gamedevs.com/topic/1203-mousedown-12-vs-mousedown-13/ Quote Link to comment Share on other sites More sharing options...
paloskin Posted August 27, 2013 Author Share Posted August 27, 2013 I'm sorry, I did not think to use the search = ( 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.