Doing a Pong-Game

  • Hi, my name is Guillermo (Gomezzara) and i'm trying to find out how to create a simple "pong" game and i have alot of issues and doubts about finish and creating a "complete" game.

    Here you can test it: http://avengedhope.com/zara/games/test

    My doubts are with the Artificial intelligence (I.A), i don't know how to create it... (or how to create a diferent levels of dificulty). Also, with the creation of a pause menu; i'm trying to use the Set Time Scale, (Press "e", the game pauses, but i can't make that you can use a simple menu because all functions are "frozen").

    Also, i'm trying to find out how to create the point systems; i make this system:

    <img src="http://vvcap.net/db/6D5Wj_MjU1YOewmtljOk.png" border="0">

    The idea, is when the ball pass a point that i define like this way:

    <img src="http://vvcap.net/db/-Odn5CzHPWpkngP9TGFq.png" border="0">

    I use a Array function to store the points?

    I'm sorry for my english!

    But i hope you can help me!!

    Greetings from Chile!

    Thanks!

  • Hello Guillermo

    Here is a pong game I made a while back:

    Pong.capx

    This .capx should help you with some of your questions. It comes with a AI (Artificial Intelligence). You can adjust the AI speed to make it easier, or harder to play by looking for were it says "lerp(Paddle_AI.Y, Puck.Y,0.05)", and changing the speed "0.05" to a higher or lower number. You can also adjust the ball speed, and acceleration in the layout properties window. Also look through the events sheet to see how you can set the ball to start at random angles to give your game a more real feel.

    I didn't comment the event sheet because I'm lazy, and it is pretty small. So if you have any questions about it just ask.

    I hope this helps.

  • Thank you very much Wink, the only problem that i have the Free version, but i will try to see it.

    Once again, Thanks!

  • Your welcome Guillermo

    The free version shouldn't be a problem my .capx only uses 18 events, and everything in it can be used with the free version.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Wink:

    The only problem would be that you're using more than 4 layers, but I don't know if that will stop him from opening it, or just exporting it.

  • OK, I see.

    Guillermo if you cant open it let me know, and I can modify it for you.

    If you can open it you could probably move layer 4,and 3's sprites onto layer 2 if you want to modify it yourself.

  • Here you go Guillermo:

    Pong Example 4 Layers

  • :( I have a strange problem

    <img src="http://vvcap.net/db/5HSm_LYk8YCt7YX4Rbkr.png" border="0" />

    I'm looking the Update, but in the webpage only appears the version 9.5 :(

    I'm Sorry!

  • Use the link on the bottom of the front page or click the link in my signature.

  • No problem here you go:

    Pong Example 4 Layers R95

  • Thanks once again Nimtrix and Wink! You guys are awesome :)

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