Search the Community
Showing results for tags 'arrows'.
-
Is there a way to add arrows in Babylon js? If there are multiple boxes or objects that are connected through lines or tube then can I have arrows on the tubes/lines that show the direction of flow? I am more interested to see if that is possible with tubes as I would also need click behavior on the connections & only tubes (not lines) are allowing me to trap the click behavior. Thanks
-
Hello guys, I am new to Phaser and programming in general. I encountered a problem while setting up the cursor controls for my player. The idea is for the player to shoot a bullet in the direction the player is pointing or running to, even while jumping. If i press the right-key and up-key at the same time and fire a bullet, everything works just fine. However, if I press the left-key and up-key at the same time and fire a bullet, the bullet does not fire. What is interesting is that If I hold the left-key and up-key at the same time and fire the bullet, the bullet fires, working just fine using the Numpad on the very same keyboard. So I thought I had a faulty keyboard and tried a different one, but I came up with the same results. Since I am new to Phaser, I am wondering If I am not doing something correctly? It would be nice to be able to use the specified key arrows instead of the numpad. For those interested, this is the part of the code that deals with the cursor mechanics (again, this code works just fine on the numpad): if (this.cursors.left.isDown) { if(this.fireButton.isDown){ this.fireBulletLeft();} this.player.body.velocity.x = - 150; this.player.animations.play('left'); } if (this.cursors.right.isDown) { if(this.fireButton.isDown ){ this.fireBulletRight();} this.player.body.velocity.x = 150;this.player.animations.play('right'); } if (this.cursors.up.isDown && this.player.body.touching.down) { this.player.body.velocity.y = -350; }
-
Arrow Slider is my third html5 game. It is an original new puzzle game, kind of like a Rubik's cube except in 2D and maybe a little easier Tap on arrows to slide row or column in direction of arrow. The object of the game is to arrange the tiles like the goal layout. https://play.google.com/store/apps/details?id=com.bdrgames.arrowslider.ads
-
- phonegapcordovapuzzle
- arrow
-
(and 4 more)
Tagged with: