TheGeekTechZone

Members
  • Content Count

    10
  • Joined

  • Last visited

About TheGeekTechZone

  • Rank
    Member
  • Birthday 04/29/1989

Contact Methods

  • Website URL
    http://geektechzone.com
  • Twitter
    @geektechzone

Profile Information

  • Gender
    Male
  • Location
    Mexico
  • Interests
    COding, C0ding, CodIng!!
  1. TheGeekTechZone

    Spine animation in HTML5

    Im having trouble running a animation I did in spine to my HTML5 game, I exported it as .json Im running the following code: game.load.atlasJSONHash('sprite', 'assets/skeleton.png', 'assets/skeleton.json');// sprite this.sprite = game.add.sprite(x, y, 'sprite', 'idle') its giving me the skeleton.png but its not displaying the animation from the .json file I try to go to the esotericsoftware.com website but its down Can some one show me how to use spine animations in a HTML5 game
  2. TheGeekTechZone

    invert sprite colors

    I see you can change the sprites colors with sprite.tint but is there any way to invert its colors?
  3. TheGeekTechZone

    Cant use this.game.debug.body(sprite);

    each time I try running : function render() { game.debug.body(sprite); } the game keeps crashing this is how my code looks: var sprite; var game = new Phaser.Game(1000, 650, Phaser.CANVAS, 'Test', { preload: preload, create: eurecaClientSetup, update: update, render: render }); function create () { game.physics.startSystem(Phaser.Physics.ARCADE); sprite = game.add.sprite(game.world.centerX, game.world.centerY, 'bullet'); sprite.anchor.set(0.5); game.physics.arcade.enable(sprite); } function render() { game.debug.body(sprite); } what could the problem be?
  4. TheGeekTechZone

    some phaser functions crashing my game

    found out the syntax error sorry, game.world.sendToBack(enemy);
  5. TheGeekTechZone

    some phaser functions crashing my game

    I am using them on the create function, if those functions work the same as bringToTop(); it should work because Im replacing bringToTop(); for sendToBack(); and it crashes function create () { enemy = game.add.sprite(103, 425, 'enemy', 'idle.png');// 325 enemy.name = 'enemy'; game.physics.enable(enemy, Phaser.Physics.ARCADE); enemy.body.setSize(0,0); enemy.scale.setTo(4, 4.3);// scale sprite image enemy.anchor.setTo(0.5, 0.9);// move sprite image enemy.sendToBack(); }
  6. TheGeekTechZone

    some phaser functions crashing my game

    Hello I have been using the function bringToTop(); to set my sprites on top of others and it works well but when I use sendToBack(); moveUp(); or moveDown(); the game crashes I checked the phaser.js file to see if those functions where there and they are. What could the problem be?
  7. TheGeekTechZone

    Why is it not colliding?

    found out the problem it was on bullet
  8. TheGeekTechZone

    Why is it not colliding?

    function create () { game.physics.startSystem(Phaser.Physics.ARCADE); enemy = game.add.sprite(103, 325, 'enemy', 'idle.png'); enemy.name = 'enemy'; game.physics.enable(enemy, Phaser.Physics.ARCADE); enemy.scale.setTo(4, 4.3);// scale sprite image enemy.anchor.setTo(0.5, 0.9);// move sprite image } function bulletHitEnemy (bullet) { bullet.kill(); alert("Hello! I am an alert box!!"); } function update () { game.physics.arcade.overlap(Bullet, enemy, bulletHitEnemy, null, this); }
  9. TheGeekTechZone

    text font and color

    does someone know how to change the text color and font? game.debug.text(' text ' , 32, 42);
  10. TheGeekTechZone

    Xbox controller on phaser

    Hello everyone !!!! I got the Xbox controller to work on my game but I cant make the RT button work. Is there any way to do that?