aykut

Members
  • Content Count

    1
  • Joined

  • Last visited

About aykut

  • Rank
    Newbie

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. aykut

    How to limit velocity

    Hello, I am building my first game as a trainee ( web developer ). My employer wants me to build a hammer hit game, similar to this: http://html.orgino.com.tr/mobilegitimtiri/25/index.html I started building it in Phaser 3 but stuck at moving the ball. How the game works: There are 4 levels, Each time the player pulls the hammer, the hammer hits the machine and ball moves up. For each level, the ball moves to a certain point. While the ball moving I need to change the background. I have tried velocity, but I can't limit how high it can go I have tried to create a game object from graphics so the ball can hit and bounce back, I've failed Currently, I am trying tween but it is problematic too. ( ball goes back and forth) My question is can I create an invisible line and use as a ceiling? If not how can I solve this problem?