• Content Count

  • Joined

  • Last visited

About xdiepx

  • Rank
    Advanced Member
  • Birthday 10/21/1987

Profile Information

  • Gender
  • Location

Contact Methods

  • Twitter
  1. Use a tween to move it instead of the frame update. It'll be much smoother (from experience).
  2. Thanks, that worked well for me.
  3. When I do a requestAnimationFrame it loops through once then it loses its scope. At the moment i don't want to use the arrow function because IE 11 doesn't support it (ref http://caniuse.com/#feat=arrow-functions). Does anyone know a way around this. Here is a sample code (function(){ var main =function(){ this.init(); } var p = main.prototype; p.init = function(){ this.stage = new PIXI.Container(); this.renderer = new PIXI.autoDetectRenderer(1024,768,{id:"stage"}); document.body.appendChild(this.renderer.view); this.updateStage(); } p.updateStage= function(){ requestAnimationFrame(this.updateStage); this.renderer.render(this.stage); } }()) As soon as it tries to render it calls this.renderer becomes undefined. I have tried binding the requestAnimationFrame which didn't work. So i console.log it out. the first time it logs i get main property with the correct property such as main.stage, main.renderer. The second time it returns me Window (in chrome). I am wondering if anyone knows how to keep the scope.
  4. You need to change "this.render()" to "this.renderer.render(this.stage);" and it should render everything for you.
  5. Hi, I am trying to use a data object to create a spritesheet/animation. The reason i am doing this is because I was using Createjs to create the project, but now i have been ask to convert the project over to pixi. Instead of going through each animation, I thought it would be easier to use the preloadjs (from createjs) to load the json then convert it into a data object that pixi can use then create a spritesheet. Could you provide some example codes to help (if you could) thank you.
  6. I am just wondering if anyone has used Matter.js with Createjs? I just wanted to know because I am much more comfortable with Createjs then Pixi. If it isn't compatible then i'll just use Pixi. Thanks for the advice.
  7. This link might help u http://www.pandajs.net/cheatsheet/
  8. You can mark that as answered now lol.
  9. What pixi version are you using?
  10. i was testing out a sprite image and i notice that there is sprite.x and sprite.position.x. I am wondering what is the difference?
  11. if you was to make a drag or drop function, which one are u mostly likely to use? function onMove (e){ var mouseData = renderer.plugins.interaction.mouse.global;}or function onMove (e){ var mouseData = e.data.getLocalPosition(stageContainer);}
  12. Maybe this link will help you. http://www.html5gamedevs.com/topic/2302-hittest-in-pixi/