Doing a Pong-Game

Forum Home Forum Home > Construct 2 General > How do I....?
 Post Reply Post Reply Page  12>
Author
433 Rep
Post Options Post Options   Quote gomezzara Quote  Post ReplyReply Direct Link To This Post Topic: Doing a Pong-Game
    Posted: 28 Jul 2012 at 9:04pm
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:



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



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!

Edited by gomezzara - 28 Jul 2012 at 9:06pm
Back to Top
7,746 Rep
Post Options Post Options   Quote Wink Quote  Post ReplyReply Direct Link To This Post Posted: 29 Jul 2012 at 1:37am
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.

Back to Top
433 Rep
Post Options Post Options   Quote gomezzara Quote  Post ReplyReply Direct Link To This Post Posted: 29 Jul 2012 at 2:23am
Thank you very much Wink, the only problem that i have the Free version, but i will try to see it.

Once again, Thanks!
Back to Top
7,746 Rep
Post Options Post Options   Quote Wink Quote  Post ReplyReply Direct Link To This Post Posted: 29 Jul 2012 at 2:43am
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.
Back to Top
6,270 Rep
Post Options Post Options   Quote Nimtrix Quote  Post ReplyReply Direct Link To This Post Posted: 29 Jul 2012 at 2:46am
@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.
Back to Top
7,746 Rep
Post Options Post Options   Quote Wink Quote  Post ReplyReply Direct Link To This Post Posted: 29 Jul 2012 at 2:57am
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.
Back to Top
7,746 Rep
Post Options Post Options   Quote Wink Quote  Post ReplyReply Direct Link To This Post Posted: 29 Jul 2012 at 3:11am
Here you go Guillermo:

Pong Example 4 Layers
Back to Top
433 Rep
Post Options Post Options   Quote gomezzara Quote  Post ReplyReply Direct Link To This Post Posted: 29 Jul 2012 at 6:24pm
:( I have a strange problem



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

I'm Sorry!

Back to Top
6,270 Rep
Post Options Post Options   Quote Nimtrix Quote  Post ReplyReply Direct Link To This Post Posted: 29 Jul 2012 at 6:43pm
Use the link on the bottom of the front page or click the link in my signature.
Back to Top
7,746 Rep
Post Options Post Options   Quote Wink Quote  Post ReplyReply Direct Link To This Post Posted: 29 Jul 2012 at 6:44pm
No problem here you go:

Pong Example 4 Layers R95
Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down