CharlesCraft50

Members
  • Content count

    60
  • Joined

  • Last visited

  • Days Won

    1

CharlesCraft50 last won the day on November 24 2016

CharlesCraft50 had the most liked content!

1 Follower

About CharlesCraft50

  • Rank
    Advanced Member

Contact Methods

  • Website URL
    http://oncollision.cf/
  • Twitter
    CharlesCraft50

Profile Information

  • Gender
    Male
  • Interests
    Programming

Recent Profile Visitors

809 profile views
  1. How to stop phaser weapon plugin reloading

    I already solved the problem by using weapon.fireLimit = number;
  2. How to stop phaser weapon plugin reloading

    My problem is that the bullets, after they killed, the weapon plugin bullets will reload again: 'this.target.bullet = game.add.weapon(5, 'bullet_1');', what I mean is I want my weapon have a ammo/limit to fire, when the ammo is 0, then don't fire again, I don't want unlimited ammo/fire. Thanks in advanced...
  3. Fix tilemap and camera lag in mobile

    My game is lagging when moving the camera in mobile devices, I don't really know how to fix it without changing in tilemap... my game here: https://github.com/CharlesCraft50/Brawler You can see the tilemap in the assets folder and the code of the tilemap is in the js/functions.js Thanks in advanced
  4. Lag in mobile

    The fps of the game is very low in mobile, but in my pc is 54-60 fps, I don't know why, I am using intel XDK and here is my game code: https://github.com/CharlesCraft50/Brawler
  5. How to use Spriter in Phaser

    @Tom Atom I can't change the scale of the transform, it giving me error: Code: this._spriterGroup.onPointUpdated.add(function (spriter, pointObj) { if (this._item.exists) { var transformed = pointObj.transformed; transformed.scale.setTo(0.14, 0.14); //Even this: transformed.scale.set(0.14, 0.14); // add SpriterGroups position and angle, bacause _item is in world space, but transformed values are in SpriterGroup local space this._item.position.set(spriter.x + transformed.x, spriter.y + transformed.y); // magic number 62.477 is initial angle of hand image in spriter animation. Compensate here to keep _item (book) more or less vertical // if _item was something like gun or sword, it would look good without this compensation this._item.angle = spriter.angle - 62.447 + transformed.angle; } }, this);
  6. How to use Spriter in Phaser

    @Tom Atom How to fix the position of the point when the animation is scaled?, I need to scale it because the animation is too big in game, the point position is not in the right position: I also try it on your example, still the same, not the correct position, even I scaled the book too, it doesn't even work too
  7. How to use Spriter in Phaser

    @Tom Atom I can't understand how to use point, can you give me examples or code examples
  8. How to use Spriter in Phaser

    @Tom Atom Is it possible to move the bones of the player in the game?, because I want to make the player like holding the guns, (like the arm is following the gun), I have many guns and they are different sizes and different texture so that is why I want the arm to follow the gun position like holding it. Thanks in Advanced
  9. How to use Spriter in Phaser

    @Tom Atom How to pause the animation when finished? and is it possible to set the animation time? Thanks in advanced
  10. How to use Spriter in Phaser

    @Tom Atom How to use the animation properly in the player that can move by using keys? please give me some game demos that uses spriter. Also this is what happen when I set the gravity of the player: Thanks in advanced
  11. How to use Spriter in Phaser

    @Tom Atom I already fixed my problem, Thank you for helping me
  12. How to use Spriter in Phaser

    @Tom Atom How can I fix this and why there is a problem?: Uncaught TypeError: Cannot read property 'variablesLength' of null at new i (spriter.min.js:2) at Level1.create (LevelState.js:104) at Phaser.StateManager.loadComplete (phaser.js:30083) at Phaser.StateManager.preUpdate (phaser.js:29849) at Phaser.Game.updateLogic (phaser.js:36333) at Phaser.Game.update (phaser.js:36280) at Phaser.RequestAnimationFrame.updateRAF (phaser.js:61979) at _onLoop (phaser.js:61962) Thanks in advance
  13. How to use Spriter in Phaser

    Thank you
  14. How to use Spriter in Phaser

    How to use spriter in phaser/javascript, and how to export it?
  15. Intel XDK Lag

    @b10bI already saw the problem, the problem is in tilemap so I added this code and the lags reduced a little bit: map_tiles_1.renderSettings.enableScrollDelta = true; map_tiles_2.renderSettings.enableScrollDelta = true; map_tiles_3.renderSettings.enableScrollDelta = true;