How do I make Bounce kind of game

0 favourites
  • 6 posts
From the Asset Store
Game with complete Source-Code (Construct 3 / .c3p) + HTML5 Exported.
  • Hi

    I wanted to make a game like bounce game.Where you have a ball with some nice bounce i mean when it jumps it should bounce 2 to 3 time and finally settle down and when it hits a wall it should bounce back a little bit like a real ball.and this ball can be controlled i mean i should move forward, backward and jump as well.

    Please help me.Thanks in advance.

  • Hi ramyaswetha

    It seems you are looking for a "physics" type of game.

    I personally do not have experience in this type of games, so Ill point you towards this article :

    https://www.scirra.com/tutorials/64/phy ... the-basics

    This should help you getting started.

    If you have any other problem with something general, don't hesitate to browse Construct 2s' tutorials !

    Have fun !

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • You may also be able to do this without physics.

    Add Bullet behavior to your ball, set Bounce off solids=yes, Set angle=No, Gravity=10, speed=100. (experiment with these values)

    Add Solid behavior to the floor.

    Create an event to increase bullet gravity every time the ball collides with the floor:

    On Ball collision with Floor -> Ball set Bullet gravity to Ball.Bullet.Gravity*2

    This will make the ball to jump lower every time.

    You can control the ball by changing its bullet properties - speed, angle of motion, gravity.

  • yes buy adding bullet behavior am getting bounce when in collides with solid but the problem is am unable to control it.For example when it collides with solid it bounces back and not getting stopped after few seconds.I wanted to control it i mean similar like object having platform behavior

  • Your best option would probably be Platform (without Physics). However, Platform can't bounce off solids, so you'll need to simulate realistic bouncing yourself. Say by calling "Simulate Platform jump" on collision with the floor and decreasing jump strength with every bounce.

    You can try using Physics. The problem is, as far as I know, it doesn't work together with Platform. So to control the ball you will need to change some physics properties - force, impulse, velocity etc.

    And finally, you might be able to do this with Bullet behavior only. (Depending on how much control of the ball you need)

    Say, if the player pressed UP key, change bullet angle to 270 (upward direction) and increase bullet speed.

  • ramyaswetha try some of my tutorials and you will find what you looking for

    https://www.dropbox.com/sh/eioscti86bpr ... 7YPza?dl=0

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)