Doing a Pong-Game

Get help using Construct 2

Post » Sat Jul 28, 2012 9:04 pm

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!gomezzara2012-07-28 21:06:40
B
7
S
2
Posts: 4
Reputation: 871

Post » Sun Jul 29, 2012 1:37 am

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.

B
50
S
11
G
8
Posts: 479
Reputation: 9,911

Post » Sun Jul 29, 2012 2:23 am

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

Once again, Thanks!
B
7
S
2
Posts: 4
Reputation: 871

Post » Sun Jul 29, 2012 2:43 am

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.
B
50
S
11
G
8
Posts: 479
Reputation: 9,911

Post » Sun Jul 29, 2012 2:46 am

@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.
B
27
S
8
G
8
Posts: 903
Reputation: 8,452

Post » Sun Jul 29, 2012 2:57 am

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.
B
50
S
11
G
8
Posts: 479
Reputation: 9,911

Post » Sun Jul 29, 2012 3:11 am

Here you go Guillermo:

Pong Example 4 Layers
B
50
S
11
G
8
Posts: 479
Reputation: 9,911

Post » Sun Jul 29, 2012 6:24 pm

:( I have a strange problem



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

I'm Sorry!

B
7
S
2
Posts: 4
Reputation: 871

Post » Sun Jul 29, 2012 6:43 pm

Use the link on the bottom of the front page or click the link in my signature.
B
27
S
8
G
8
Posts: 903
Reputation: 8,452

Post » Sun Jul 29, 2012 6:44 pm

No problem here you go:

Pong Example 4 Layers R95
B
50
S
11
G
8
Posts: 479
Reputation: 9,911

Next

Return to How do I....?

Who is online

Users browsing this forum: makkancs and 24 guests