gbachik

Members
  • Content Count

    8
  • Joined

  • Last visited

About gbachik

  • Rank
    Newbie

Profile Information

  • Gender
    Not Telling

Contact Methods

  • Twitter
    gbachik
  1. So I'm trying to setup a ragdoll, and right now I'm just doing some basic stuff where: -I create a head and body. -Connect them via a joint -add them to figure group -load the figure group But for some reason they won't collide with world bounds. I'm including some of my code: Group: 'use strict';var Head = require('./head');var Body = require('./body');var Figure = function(game, parent) { Phaser.Group.call(this, game, parent); this.head = new Head(this.game,0,0,0); this.add(this.head); this.topBody = new Body(this.game, 34,34,0); this.add(this.topBody); var hbConstraint = game.physics.p2.createDistanceConstraint(this.head, this.topBody, 34); };Figure.prototype = Object.create(Phaser.Group.prototype);Figure.prototype.constructor = Figure;Figure.prototype.update = function() { // write your prefab's specific update code here };module.exports = Figure;Head piece: 'use strict';var Head = function(game, x, y, frame) { Phaser.Sprite.call(this, game, x, y, 'Head', frame); this.anchor.setTo(0.5,0.5); this.game.physics.p2.enableBody(this); this.body.clearShapes(); this.body.loadPolygon('headPhysics', 'Head'); this.body.collideWorldBounds = true; this.game.physics.p2.updateBoundsCollisionGroup(); };Head.prototype = Object.create(Phaser.Sprite.prototype);Head.prototype.constructor = Head;Head.prototype.update = function() { // write your prefab's specific update code here };module.exports = Head;Any idea what I'm doing wrong?
  2. You sir are my hero This plugin is awesome and I will be using it in my next game! Ps what do you use to record those gifs in a all your tuts?
  3. These tutorials are great! I'm a node guy so I feel right at home with the technology! Was looking for a generator like yours, gave up, then found your tutorials... life saved haha :]
  4. Its kind of a vague example for what I need but I'll do my best to try and make something from the example codes! I'll post my results here and maybe someone can help me touch it up to perfection! :]
  5. Okay thanks for the replies! I'll do that! @adamyall didn't understand what you meant at firrst but I'm assuming you mean for pixel scaling level sizes etc I'll keep that in mind thanks!
  6. When I first started I thought: this is kinda cool but meh... Then I didn't stop playing for over an hour! Its actually insanely addictive haha! Nice concept here :]
  7. So I'm trying to create a rag doll based game, where the user dodges some falling objects! It's inspired by one of my favorite games as a kid: http://www.freewebarcade.com/game/ragdoll-avalanche-2/ There isn't really any documentation on this and frankly I'm pretty new to game development(not javascript though) Whats the easiest way to get a ragdoll running in phaser? I was able to find a vague reference leading to P2JS and its ragdoll example but: 1. I'm not skilled enough port it to phasers built in P2 2. The ragdoll isn't very similar to the one in ragdoll avalanche Is there a way to do this with sprites & maybe physics editor to get it running more the like example game I provided? Any help / example code you'd be willing to share is greatly appreciated! -Thanks for reading
  8. I currently want to build a game for iPhone (I have a 5s) using Phaser and CocoonJS. I'm just wondering what the best/most optimized initial game size would be for this! aka for this code: var game = new Phaser.Game(800, 600, Phaser.AUTO, 'icicle-man');What would be the best options to replace 800 & 600 with? -Thanks