Search the Community
Showing results for tags 'directional'.
Hello everyone, I'm fairly new to Phaser, and I'm just starting to figure things out. I made a simple prototype that uses "game.input.keyboard.createCursorKeys()" to listen and process the keyboard's cursor keys. Basically I have a sprite that moves up, down, left and right depending on input. Now I'm trying to achieve the same using touch events: when I swipe left, the sprite moves left; when I swipe up, the sprite moves up, etc.... but with no success. I've managed to detect swipe using a solution that user @imshag posted in this topic: http://www.html5gamedevs.com/topic/3862-swipe-to-
Hi, I basically spend all day trying to make a very simple scene with a spinning box that simply casts a shadow >> http://playground.babylonjs.com/#1WTS3Q while doing so I think I found a bug, my original plan was to have a light source pointing straight down so I set the directional lights target parameter to a Vector(0,-1,0) as it is also shown in this example in the tutorials if you look through the source-code of the playground demo I linked above and go and find line 28: dirLight = new BABYLON.DirectionalLight("dirLight", new BABYLON.Vector3(0.1, -1,