Deino

Members
  • Content Count

    12
  • Joined

  • Last visited


Reputation Activity

  1. Like
    Deino reacted to valueerror in How to stop the character from running continuously and jumping while it is still in mid-air?   
    oh.. and in your case you need to set velocity.x to 0 somewhere if no button is pressed. you know that every basic tutorial and some of the official examples cover all of these problems
  2. Like
    Deino reacted to hollowdoor in How to stop the character from running continuously and jumping while it is still in mid-air?   
    If you want the player animation to be still just use the frame property.
     
    Like:
    this.dude.frame = 40; Put that somewhere in your update after an if else condition you like.
     
    Like valueerror said. You can check the onFloor() state, and set the sprite frame to whatever you want.
  3. Like
    Deino reacted to valueerror in How to stop the character from running continuously and jumping while it is still in mid-air?   
    in arcade physics you have a very convenient method called "onFloor()"   to find out if a body is on floor..   that's all you need
  4. Like
    Deino reacted to Nikow in Destroying a sprite on collision   
    Why duplicated 'game.physics.arcade.collide(this.ball,this.coins,this.scoreincrease,null,this);' just one is enough !
     
    And after : 
    scoreincrease : function(ball,coins){ this.score += 20; this.labelScore.text = this.score; coins.kill(); },
  5. Like
    Deino reacted to Berzee in Unable to move my character   
    Is it because your jump function refers to this.bird instead of this.ball? =)
  6. Like
    Deino reacted to rich in Unable to move my character   
    But there's no code in there to actually move your character at all.