Jump to content

Search the Community

Showing results for tags 'acceleration velocity phaser'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Web Gaming Standards
    • Coding and Game Design
    • Paid Promotion (Buy Banner)
  • Frameworks
    • Pixi.js
    • Phaser 3
    • Phaser 2
    • Babylon.js
    • Panda 2
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
    • GameMonetize
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered
    • Marketplace (Sell Apps, Websites, Games)

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Twitter


Skype


Location


Interests

Found 1 result

  1. Running the new Phaser 2.3 and I've been trying all day to make a simple asteroids-type game going off the examples and the problem I'm having is-- game.physics.Arcade.velocityFromAngle(sprite.angle, 300, sprite.body.velocity); this line of code seems to be crashing my program. I copied it directly from phasers examples http://phaser.io/examples/v2/arcade-physics/angular-velocity Heres a copy of my code as proof I'm not just making mistakes elsewhere play.html There doesn't seem (to me) to be another way to get the ship accelerating forward based on its current direction I'm running Linux (mint) if that matters at all for example: //this code works with something simple like sprite.body.velocity.y = 200; but when i enter the above line it freezes the game as soon as I press the up //key is pressed. //using the other ways to say button isdown returned a black screen if (game.input.keyboard.isDown(Phaser.Keyboard.UP)) { }
×
×
  • Create New...