Discuss Scratch

Viramo
Scratcher
10 posts

Making beginner pong games better

Ok, so almost every user started off with a pong game, and on almost every pong game, the paddle moves to the mouse. So the script of the paddle looks like this:
whenclickedforevergotomouse pointer

This totally OK however it isn't really that realistic and providing a more realistic alternative would not necessary make it harder to code. That is possible with the next code
whenclickedsetyto-160scratchblocks)/scratchblocksforeverscratchblockssetxtoxpositionofmousepointerend/scratchblocks

So now the paddle will be at constant y level just above the red or “lava” and on a constantly changing x axis, which is controlled by the mouse. What do you think?


—————————

lets just pretend this is my signature until I become a scrtcher and am able to use the normal one.
Scratcher1002
Scratcher
1000+ posts

Making beginner pong games better

Viramo wrote:

Ok, so almost every user started off with a pong game, and on almost every pong game, the paddle moves to the mouse. So the script of the paddle looks like this:
whenclickedforevergotomouse pointer

This totally OK however it isn't really that realistic and providing a more realistic alternative would not necessary make it harder to code. That is possible with the next code
whenclickedsetyto-160scratchblocks)/scratchblocksforeverscratchblockssetxtoxpositionofmousepointerend/scratchblocks

So now the paddle will be at constant y level just above the red or “lava” and on a constantly changing x axis, which is controlled by the mouse. What do you think?


—————————

lets just pretend this is my signature until I become a scrtcher and am able to use the normal one.
You can, scroll ALL the way down, and click “Change my signature”..
Viramo
Scratcher
10 posts

Making beginner pong games better

Scratcher1002 wrote:

Viramo wrote:

Ok, so almost every user started off with a pong game, and on almost every pong game, the paddle moves to the mouse. So the script of the paddle looks like this:
whenclickedforevergotomouse pointer

This totally OK however it isn't really that realistic and providing a more realistic alternative would not necessary make it harder to code. That is possible with the next code
whenclickedsetyto-160scratchblocks)/scratchblocksforeverscratchblockssetxtoxpositionofmousepointerend/scratchblocks

So now the paddle will be at constant y level just above the red or “lava” and on a constantly changing x axis, which is controlled by the mouse. What do you think?


—————————

lets just pretend this is my signature until I become a scrtcher and am able to use the normal one.
You can, scroll ALL the way down, and click “Change my signature”..

No i cant, im a new scratcher. You can only change your signature when you have become a scratcher. wait here is a better attemppt. i also cant post images

_______________
VIRAMO
Sheep_maker
Scratcher
1000+ posts

Making beginner pong games better

Um, I'm not sure if I understood your suggestion correctly, but wouldn't this:
whenclickedsetyto-160foreversetxtomousex
do the trick?
or if you want smooth-ness-ish:
whenclickedgotox:0y:-160foreverchangexbymousex-xposition/5
Viramo
Scratcher
10 posts

Making beginner pong games better

Sheep_maker wrote:

Um, I'm not sure if I understood your suggestion correctly, but wouldn't this:
whenclickedsetyto-160foreversetxtomousex
do the trick?
or if you want smooth-ness-ish:
whenclickedgotox:0y:-160foreverchangexbymousex-xposition/5

uh yeahthat, so the first one really isnt that complicated for a bigenier scratcher, is it?
DownsGameClub
Scratcher
1000+ posts

Making beginner pong games better

Nope. I honestly don't think it is very complicated. It should be easy enough for the beginner to program the project with the resources presented to make the project. No support.

However, this is a good idea. Try thinking of some more (on a different topic).
Sheep_maker
Scratcher
1000+ posts

Making beginner pong games better

Viramo wrote:

Sheep_maker wrote:


uh yeahthat, so the first one really isnt that complicated for a bigenier scratcher, is it?
So is your suggestion to add this:
mousex
which already exists, btw
Viramo
Scratcher
10 posts

Making beginner pong games better

yes, i know it exists, but when scratch explains how to make a pong game, wouldnt this way be better?

So is your suggestion to add this:
mousex
which already exists, btw
Abstract-
Scratcher
1000+ posts

Making beginner pong games better

No support. We shouldn't give everything to them from the very begining.
Viramo
Scratcher
10 posts

Making beginner pong games better

Abstract- wrote:

No support. We shouldn't give everything to them from the very begining.

MUHAHAHAHAHAHAHAAHAHAHA what tho
Abstract-
Scratcher
1000+ posts

Making beginner pong games better

Viramo wrote:

Abstract- wrote:

No support. We shouldn't give everything to them from the very begining.

MUHAHAHAHAHAHAHAAHAHAHA what tho
We should let them figure out things themselves.

Powered by DjangoBB