
xdiepx
Members-
Content Count
91 -
Joined
-
Last visited
About xdiepx
-
Rank
Advanced Member
- Birthday 10/21/1987
Profile Information
-
Gender
Male
-
Location
Manchester
Contact Methods
-
Twitter
DiepDao
-
Use a tween to move it instead of the frame update. It'll be much smoother (from experience).
-
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.
-
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.
-
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.
-
You can mark that as answered now lol.
-
-
What pixi version are you using?
-
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?
-
cool, thanks for the advice
-
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);}
-
Maybe this link will help you. http://www.html5gamedevs.com/topic/2302-hittest-in-pixi/
-
What do u mean?