Discuss Scratch

AveryBrodyA
Scratcher
34 posts

My Balls aren't shooting right

The game is supposed to shoot red balls from the right and multiple at 200, more at 400, even more at 600, and so on. It won't.
https://scratch.mit.edu/projects/205291744/
Scratch-Minion
Scratcher
500+ posts

My Balls aren't shooting right

The red balls are generated with x=240. ie. they are touching the edge immediately.
If you temporarily remove the “touching edge” test, they will appear.

But only two appear as after that variable BadClonesDead never equals BadBallClone#
AveryBrodyA
Scratcher
34 posts

My Balls aren't shooting right

It tests that it doesn't touch the edge before that it tests that it is and I don't understand the second
deck26
Scratcher
1000+ posts

My Balls aren't shooting right

At the moment you have a script that deletes the cloned red ball as soon as you create it if it is touching the edge.

when I start as a clone
wait until <<touching [Arrow Player v]> or <touching [edge v]>>
change [BadClonesDead v] by [1]
delete this clone
AveryBrodyA
Scratcher
34 posts

My Balls aren't shooting right

deck26 wrote:

At the moment you have a script that deletes the cloned red ball as soon as you create it if it is touching the edge.

when I start as a clone
wait until <<touching [Arrow Player v]> or <touching [edge v]>>
change [BadClonesDead v] by [1]
delete this clone
Thanks!

Powered by DjangoBB

Standard | Mobile