1ipt0n Posted May 26, 2015 Share Posted May 26, 2015 hi, my sprite is standing on tile floor but i can't jump ( body.velocity.y=-600 ) , when I jump on air it's work perfect. also i'm using joystick from this tutorial https://medium.com/@netcell/a-virtual-joystick-for-phaser-f59a7a38a642 there is onMove signal :this.events.onMove = new Phaser.Signal();... and in updatethis.events.onMove.dispatch(direction, distance, angle); when I enter in console archer.body.blocked.down or archer.body.onFloor() it's returning true, but when I console.log it on onMove event it's always false... please help Link to comment Share on other sites More sharing options...
1ipt0n Posted May 27, 2015 Author Share Posted May 27, 2015 i think I might have an idea what is going on. my character name adcher have .update methodand joystick also have update method collision is dispatched on archer update and joystick uptate is always first. I't dont matter if I declare archer oj joystick first in my main function. Maby...just maby if I could change order of updates, to archer update first than joystick, it will work. but I have no idea how to do that. how phaser decides which update goes first? Link to comment Share on other sites More sharing options...
Recommended Posts