Discuss Scratch

JSW123
New to Scratch
10 posts

How to add level when points reach 5 - Pong Game

Im making a pong game and I want to know to add a new level when one of the users reaches 5 points?? Help would be great thanks!
powerpoint56
Scratcher
1000+ posts

How to add level when points reach 5 - Pong Game

forever
if <(points) > (5)> then
broadcast [next level v]
In your game, there should definitely be a variable called points (or something similar) keeping track of the score so this works. Also, you'll need a broadcast for the next level, depending on how your levels change.

Hope this helps!

Last edited by powerpoint56 (April 26, 2014 15:10:06)



Explore, my Scratch mod | Car Crash | My projects | (image by @MicroMacro)
Christine2014
New to Scratch
1 post

How to add level when points reach 5 - Pong Game

i need to know how to make another level on the pong game after it reaches 20 points
deck26
Scratcher
1000+ posts

How to add level when points reach 5 - Pong Game

Rather than the greedy forever loop use something like this

wait until <(points) > [5 ]>
do something
wait until <(points) > [20 ]>
do something else
minerman6
Scratcher
100+ posts

How to add level when points reach 5 - Pong Game

Hello

A game of BASIC PONG i made is here. On the see inside youu shold be able to see how somme of the Script works. Any quuestions leave a comment. All comments are replied to.

If you liked that then check out the remix. Basic Pong Returns remixed by Serperior1700

Scratch On!

~Minerman6~

THE SHOP OF HELP IS CLOSED. SEE HERE FOR NEW ACCOUNT

THIS ACCOUNT IS DEACTIVATED
D1reboar
New to Scratch
1 post

How to add level when points reach 5 - Pong Game

w'a;er0awu8ty0wi5uhy
coding4life22
Scratcher
66 posts

How to add level when points reach 5 - Pong Game

when green flag clicked
forever
if <Points> = [5]> then
broadcast [next level]
end
end
Does this help?


“We believe in ordinary acts of bravery, in the courage that drives one person to stand up for another.” -Divergent








Powered by DjangoBB