Jump to content

Search the Community

Showing results for tags 'Physics'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Web Gaming Standards
    • Coding and Game Design
  • Frameworks
    • Phaser 3
    • Phaser 2
    • Pixi.js
    • Babylon.js
    • Panda 2
    • melonJS
  • General
    • General Talk
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start



Website URL





  1. sur0x

    Character Dash

    Hi , First of all, I'm new to programming and creating games, so I'm trying to make my character dash some frames in X , they way I implemented it's kinda of teleporting the player. Could anyone help me to figure out how to do it smoothly? I'm planning to add a custom dash animation to the sprite, so far I'm using the default phaser character. Here's my piece of code: function dashLeft() { if (player.body.touching.down && player.body.facing == 2) { dashGauge = dashGauge-1 player.body.velocity.x += 1000;
  2. Please tell me, how I can use P2.js physics in phaser framework? Whether there is an example of this? I have seen what p2 files included in sources framework? but I don't know how to call P2 physics in phaser. I would be very grateful for the help)
  3. I have a group object with a few independent parts, The character sprite, the players name hovering above, and a status object, which will likely be more sprites and text in a sub-group. How can I make this group act as one object? Like stopping the whole group with collideWorldBounds? Right now Im only able to stop the player sprite with body.collideWorldBounds = true, but the text just keeps on going right off the screen. There doesnt seem to be a way to set body properties on a group?
  4. Hello everyone, I started using Phaser today and I must say I am impressed. Well done guys! I made a simple image rotate and move towards the mouse, as explained in the examples "accelerate to pointer" and "move towards object". What happens though is that when that image collides with the mouse (meaning image coordinates = mouse coordinates) the image stops and starts trembling awkwardly. Any way to make it stop facing the last position before colliding? My code: var game = new Phaser.Game(800, 600, Phaser.AUTO, '', { preload: preload, create: create, update: update });function preload(
  5. Play Now It's christmas already?! Santa was a bit late in collecting the gifts. Will you help him? In this physics puzzle game you try to reach the gift to santa's bag , You should make carful moves on which ropes to cut or which objects you shoot with the slingshot , The point is , Collect the gifts! Screenshots: --
  6. Send Watermelon Home Update -20 levels added -removed the possibility to pick up and move the watermelon in a box!(now you can not cheat ) -Now if you fell a stone box that level can not go any further! -enhanced game difficulty! -added Walkthrough Description Be smart, show what you can do! Complete 30 levels and send home a watermelon! ScreenShots Controls "how to play" is on the first level. Game Link: http://megga.comule.com/swh5/ Walkthrough
  7. I noticed some odd behaviour of sprite bodies. If I take a sprite, set visible to false and start moving it around while rendering the body with game.debug.renderSpriteBody, the body will actually stay where it was. This is especially strange when I use kill to temporarily depose of a sprite, because the body will still be present in the game. This lead to two bugs in my project: 1. My invisible enemies are now almost impossible to hit, because they don't carry their bodies with them 2. Somehow the body of my projectile is able to collide on it's last position, when I used reset after using
  8. Hey all, Got some motivation to continue working on my 'Tiny Wings' inspired game. Finally got some decent performance: 40-60fps on iOS.15-20 fps on the stock Android browser. Could improve this though Things I had do to get there: Use Chipmunk rather than Box2dHalve the resolution to 240x160Use a limited pool of 'ground' strips to represent the ground vertex points http://www.tysonross.com/temp/tinywingsclone/index.html Going to add some collectable coins, different 'islands', and basically make it a proper game. Cheers, Tyson
  9. Is there any possibility to shrink the physics body in Phaser? My game relies on collisions a lot. Round or polygonal body would be perfect. But if I can at least shrink the body, it will help a lot.
  10. Hello. I'm working on top-down 8 ball pool game. Box2D world has 0 gravity and when I use ApplyImpulse on ball it won't slow down and never stops. My question is how to apply friction for top down game? You can test it here: http://impressive.lt/test/box2d/8ball.html Source code: <html> <head> <title>8ball</title> </head> <body onload="init();"> <canvas id="canvas" width="600" height="400" style="background-color:#333333;" ></canvas> </body> <script type="text/javascript" src="Box2dWeb-2.1.a.3.min.js"></script&g
  11. A new PlayCanvas tutorial has just gone live: Collision and Trigger Volumes. Check it out: http://developer.playcanvas.com/tutorials/intermediate/collision_and_triggers.html Trigger volumes in particular are so incredibly useful when writing a game. Imagine determining if a car has driven through a checkpoint or whether a character has stepped on a trap. Trigger volumes notify you when these events occur. Enjoy!
  12. Hi all! I've just registered to this forum, and I'm very new to make HTML5 games. I want to show you this game that I made with GameMaker: Studio, it's called Basketball Touch. PLAY IT ON MOBILE Basketball Touch is a very simple HTML5 game optimized for mobile, based on physics. The object of the game is to score as many baskets as you can in two minutes. There is a score multiplier, which is incremented when you score a basket, but it will be reset to 1 in few seconds if you don't score another basket. To throw the ball simply touch (or click) on screen: the direction and force of the
  13. Gemollection Collect the gems into the chests of the same color by cutting chains and using punch boxes. Collect coins for extra points.Tap on chain to cut it and figure out how to get the gems into the treasure chests of the matching colors. And finally get rich! We used adapted box2d engine and our framework "Squire". The game supports most screen resolutions. Hope you'll like it yours truly, True Token
  14. Hey guys, i want to develop a physics game for mobile web like this game (http://www.addictinggames.com/shooting-games/zombie-shooter-game.jsp) ,i want to know if this type of games play well on mobile browsers. regards,
  15. I am trying to create a simple air hockey implementation in Phaser and can't figure out how to change the shapes of physics bodies to be circular. It appears in the arcade physics system that ALL bodies are rectangular, but in the source there's an "advanced" physics folder there that appears to allow you to create bodies of varying shapes. Is there an example of how to use these shapes anywhere in the examples or WIP? From reading previous posts on this forum, it looks like there's actually two physics engines currently in the code (arcade and the N+ library?). Perhaps is there a way to swa
  16. Box2D physics engine works according to the rules of physics. You have to work a little bit to set it up to work with platforms like HTML5 Canvas, iOS or Flash. Read the details Box2d coordinate system for HTML5 Canvas
  17. I got tired of adding basic physics over and over and decided to put together the best algorithms I could find into a couple tiny JS demo pages that I can later copy/paste from into any project. Feel free to submit improvements--it's a bit messy but well-commented and I cite my sources for further research for others. Fork it on github.
  18. This is the main question, I posted it on Stack Overflow so here's the link: http://stackoverflow.com/questions/17132342/html5-canvas-collision-with-ball-physics-glitch
  19. Hey folks this was Xploit Games Ludum Dare 26 Jam entry for "Minimalism". The game is called "Enlightenment": "Enlightenment is a 2D game where you throw things out of windows. It was written in HTML5 and WebGL using the Turbulenz engine and should work on any HTML5/WebGL browser. For the best experience we recommend Chrome. All code for the game and the hosting site (other than libraries) were written for the Ludum Dare jam. As a monk, you aspire to the minimalist aesthetic. A house free of clutter is your only desire. You walk the path to enlightenment, free of worldly possessions. But
  20. Just, wow http://codepen.io/stuffit/details/KrAwx
  21. Physijs brings a very easy to use interface to the three.js framework. One of the reasons three.js is so popular is because it is so incredibly easy for graphics newbies to get into 3D programming. Physijs takes that philosophy to heart and makes physics simulations just as easy to run. In fact, there are just five easy steps that must be taken to make a 3D scene come alive. http://chandlerprall.github.com/Physijs/
  • Create New...