• Content Count

  • Joined

  • Last visited

About TheGeekTechZone

  • Rank
  • Birthday 04/29/1989

Contact Methods

  • Website URL
  • Twitter

Profile Information

  • Gender
  • Location
  • Interests
    COding, C0ding, CodIng!!
  1. 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 website but its down Can some one show me how to use spine animations in a HTML5 game
  2. I see you can change the sprites colors with sprite.tint but is there any way to invert its colors?
  3. 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(,, 'bullet'); sprite.anchor.set(0.5); game.physics.arcade.enable(sprite); } function render() { game.debug.body(sprite); } what could the problem be?
  4. found out the syntax error sorry,;
  5. 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'; 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. 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. found out the problem it was on bullet
  8. function create () { game.physics.startSystem(Phaser.Physics.ARCADE); enemy = game.add.sprite(103, 325, 'enemy', 'idle.png'); = '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. does someone know how to change the text color and font? game.debug.text(' text ' , 32, 42);
  10. 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?