Unity tutorial - Pong Game - How To Make Mobile Games - part 5C

preview_player
Показать описание
ALL QUESTIONS ABOUT THIS TUTORIAL CAN BE POSTED AND ANSWERED ON THE FORUM LINK HERE:

This is a tutorial video on how to make a pong style game inside Unity 3D. It follows the game 'Ping Pong Pinball X' available for free on iPhone and Android here:

iPhone:

Android:

Check out the beginner and intermediate training books on Amazon here:

If you have any questions on how something was done or if you'd like to see a separate tutorial video on another aspect of Unity, please leave a comment below.

More videos coming soon - please subscribe and comment.

Happy developing
Martin
Рекомендации по теме
Комментарии
Автор

cheers for the videos man. I love how you explain all the codes. The best tutorials i have had cause i am actually learning!

CarnageBunny
Автор

Yeah, I'll include in the tutorial some bonus areas like in a pinball machine. if the ball goes between them then the players get extra points.

By the way 'Ping Pong Pinball' just came out for iPhone. Check it out as it's the game I'm following for this tutorial series.

Chat soon :)
Martin

HowToMakeMobileGames
Автор

Hey marting even thought I haven't tried, the logic makes since and I am sure it will work for me. I will put in both ball and paddle script. Thx a lot!!!

rodrigolins
Автор

hey carnage. that's great, thanks for the comment :)
I'll keep bringing more out. let me know if there's anything specific you'd like me to talk about.

Happy Developing,
Martin

HowToMakeMobileGames
Автор

Hey Carnage. I just started to upload part 6 which includes particles and making it more pretty. Part 6A is available now. I'll get the other parts uploaded today

Martin :)

HowToMakeMobileGames
Автор

for everybody! add highScore3DText in the inspector of all objects except Main Camera.
If you do this only for GeneralScripts, unity show you the error

MrMancioman
Автор

There are a few things, 1. Polishing up the game, particles and looks.

CarnageBunny
Автор

Part 5 section was pretty big! Very Informative though.

markuscosmos
Автор

Hey Rodrigo. No problem at all :)
Sorry the comment didn't put the spaces in correctly, it's all squashed together. Let me know if you have any trouble.

All the best,
Martin

HowToMakeMobileGames
Автор

2. Maybe some more things for the players to get to gain higher sccores

CarnageBunny
Автор

When the ball velocity hits anything over 30 it actually jumps out of the screen...

slughead
Автор

Hi Henrique. Glad you figured it out. Catch me if you have any other questions.

By the way, could you add one of my game play videos to your channel. its just to help spread the news. please let me know if you can. here's the link: bit[DOT]ly/popthefruit

Happy developing
Martin

HowToMakeMobileGames
Автор

Hi Rodrigo. Thanks for the message.
Try this:
Inside of the ball.js script



//put this at the start of the script
var ballHasStartedMoving : boolean = false;

//add this inside the Update() function
if(Input.GetMouseButtonUp(0) && ballHasStartedMoving == false)
{
ballHasStartedMoving = true;
InvokeRepeating("IncreaseBallVelocity", 2, 2);
}

//comment out this function call inside Awake()
//InvokeRepeating("IncreaseBallVelocity", 2, 2);



Let me know if this works :)
Martin

HowToMakeMobileGames
Автор

I'm sorry... Never mind... I forgot the parenthisis at the end of ".ToString". Thx anyway xD

rikelima
Автор

Hey Carnage. No problem. Will get more of the tutorial released soon :)
By the way everyone, feel free to add me to facebook: facebook.com/martin.finch.92

Cheers,
Martin

HowToMakeMobileGames
Автор

Everything works up to now, when my ball goes below the paddle it no longer goes back to the menu scene it just keeps going so i have to leave the game. HowToMakeMobileGames 

bensadler
Автор

NullReferenceException: Object reference not set to an instance of an object
MenuScene.Awake () (at

dariushdz
Автор

Hi Rodrigo.
Try this: Inside of the ball.js script



//put this at the start of the script
var ballHasStartedMoving : boolean = false;

//add this inside the Update() function
if(Input.GetMouseButtonUp(0) && ballHasStartedMoving == false)
{
ballHasStartedMoving = true;
InvokeRepeating("IncreaseBallV­elocity", 2, 2);
}

//comment out this function call inside Awake()
//InvokeRepeating("IncreaseBal­lVelocity", 2, 2);


Let me know if this works :)
Martin

HowToMakeMobileGames
Автор

My highscore just stays at 0. What am i missing? I don't even get it saved afterwards.

XXJOHNATHANXX
Автор

my highscore just stays the same on 0. dont know wat
to do my high score just stays the same!!

mcdemton
welcome to shbcf.ru