Jump to content

Search the Community

Showing results for tags 'boost'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Web Gaming Standards
    • Coding and Game Design
    • Paid Promotion (Buy Banner)
  • Frameworks
    • Pixi.js
    • Phaser 3
    • Phaser 2
    • Babylon.js
    • Panda 2
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
    • GameMonetize
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered
    • Marketplace (Sell Apps, Websites, Games)

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Twitter


Skype


Location


Interests

Found 1 result

  1. Hey everyone, I am really new to Phaser so If i ask something really stupid, I am sorry in advance, lol. I created an item named Redea that will boost the player speed for 15 seconds and change his sprites for 15 seconds, after that everything goes back to normal (this item will be activated when the player collides) I created the collision and everything but the speed is not changing and I can't seem to change the sprite, can anyone help me here?? That's what I got P.S The variable playerVelocity is because I was told that it can mess up with the physics if we tween the velocity. Btw, I need to make it only appear sometimes on the same spot, tho. Can anyone help me with that? redeaFun: function(){ this.emitter.x = this.redea.position.x; this.emitter.y = this.redea.position.y; this.emitter.start(true,500,null,15); this.playerVelocity = {x:0, y:0}; this.game.add.tween(this.playerVelocity) .to({y: 500,x:500}, 5,true); }, update: function() { this.player.body.velocity.x=this.playerVelocity.x; this.player.body.velocity.y=this.playerVelocity.y; }
×
×
  • Create New...