PONG COLLabb

make sure you do this:


then

THEN click on the 4 block [] > [] statement seperately. you have to click pause each time you see a result bubble.

I don’t know all I saw when I did that it just said it was true if one of the variables was greater than 0. The only other thing I can think of is that its updating to fast

what does this mean?

you're definitely not using single stepping then. can you please post a screen shot?

no

Does this help?
untitled script pic (5)
This is the same script but it has more descriptive names that should help you see the issue.

Read This Once You Understand What You Did Wrong

Technically, the script you have does work, but not for the reason that you think/thought:
When a block that expects a Boolean gets a number or a text, it always treats it as true unless the value is zero:




Thus, when the score is anything other than zero, the or block treats it as true and reports true. The "greater than" block expects a number or text, so when it gets a Boolean, it treats "true" as 1 and "false" as 0. Zero is not greater than zero, but 1 is. So if the or predicate reports true (because at least one of its inputs is not zero), this "true" is greater than 0, and thus the whole reporter reports true. So, technically, all you really need to do is this:
untitled script pic (9)
But... this is much more readable:
untitled script pic (10)

Oh wow I don’t know how I didn’t see it before!

It's... not just your Smerge:


PS: smerge.imp.fu-berlin.de is the redirect from smerge.org

I think they were, but the script does technically work (see previous post), and they weren't seeing what was wrong. Note also that from time to time single stepping fails to show intermediate result bubbles.

@mark4sisb is the Ai that you made possible to beat?

Yes, it is, but if you think it is too hard, remember you can tweak the "2.9" number to slow down or speed up the paddle.

Ok just making Sure!

I noticed that the question about what game mode to play went of the screen. Here is a cool trick in Snap! for when you want to ask for an answer from a list of options:


Try it out and see what you think!

Also, for your game end script, the game keeps going for 11 seconds while you show the game end message on the screen. Here are a couple of other options:


The above option will show the winning message on the screen forever.


This will show the winning message on the screen for 11 seconds whilst still stopping the game. In the case of Player 1 winning, the message will disappear when the game is unpaused (say [] won't say nothing, it will remove the message on the screen).

Thank you!

here's why:

you:

so yeah. thats why.

THE SMERGE IS SO ANOYING IT MAKES THE BALL GO LIKE 50 MILION STEPS WHEN I SLECT A MODE! ahhhh

If I click the green flag without first clicking the stop sign, the game will get a bug where it won't stop playing but the menu will appear. Maybe you can figure out how to fix this.

stop [all but this script V]

Im still thinking on new updates I don’t know what to put.

ok? I would say then now's the time you should move on to a new project. maybe join other people's collab instead of starting another one.

I agree with sathvikrias, but I personally think you should try working on something by yourself.
Working on something alone is probably the best way to learn about Snap!, it would be more beneficial to your understanding of the editor.
Rather than working on a project where multiple people contribute and create scripts for you, you can learn to make more things on your own.
You can still come to the forums and ask for help with things, I don't think anyone minds, and that, too, will help you learn!

Ok I’ll move on to a different Project. And i did make the whole game script by myself ( for the start of it) @mark4sisb and @sathvikrias gave me some code and mobility too