Discuss Scratch

coolgamemaker496
Scratcher
31 posts

move and collide block

its a bit of a hassle to make a moving system and scratch is meant to be easy to learn. so i propose a new block that makes it so easy!
change x by ((x speed)) change y by ((y speed)) <collide with [ choose sprite v] ?>

this would make it so much easier!

Last edited by coolgamemaker496 (May 8, 2026 10:58:29)

I_wantasheep
Scratcher
1000+ posts

move and collide block

i have more problems understanding this block than following a griffpatch tutorial
coolgamemaker496
Scratcher
31 posts

move and collide block

I_wantasheep wrote:

i have more problems understanding this block than following a griffpatch tutorial
change x by changes the x by a variable change y changes the y by a variable and collide makes it not function if its touching an object
I_wantasheep
Scratcher
1000+ posts

move and collide block

so just
change x by (x velocity)
change y by (y velocity)
if touching [ v], bounce :: motion
in one block?

(for the bounce on sprite block, use this topic)

Last edited by I_wantasheep (May 8, 2026 10:59:22)

coolgamemaker496
Scratcher
31 posts

move and collide block

I_wantasheep wrote:

so just
change x by (x velocity)
change y by (y velocity)
if touching [ v], bounce :: motion
in one block?

(for the bounce on sprite block, use this topic)

that doesnt exist
and the link does not give a block
I_wantasheep
Scratcher
1000+ posts

move and collide block

coolgamemaker496 wrote:

I_wantasheep wrote:

so just
change x by (x velocity)
change y by (y velocity)
if touching [ v], bounce :: motion
in one block?

(for the bounce on sprite block, use this topic)

that doesnt exist
and the link does not give a block
the link directs to a topic suggesting that the block should be added, you must be new to the forums
coolgamemaker496
Scratcher
31 posts

move and collide block

I_wantasheep wrote:

coolgamemaker496 wrote:

I_wantasheep wrote:

so just
change x by (x velocity)
change y by (y velocity)
if touching [ v], bounce :: motion
in one block?

(for the bounce on sprite block, use this topic)

that doesnt exist
and the link does not give a block
the link directs to a topic suggesting that the block should be added, you must be new to the forums
i am kind of new to this i only posted twice back in 2023
some1atskool
Scratcher
100+ posts

move and collide block

No support, the workaround is super easy

define change x by (x_change) change y by (y_change) until <when> with speed (speed)
repeat until <when :: custom-arg>
change x by ((x_change) / (speed))
change y by ((y_change) / (speed))
end
abrakaidabra
Scratcher
500+ posts

move and collide block

I_wantasheep wrote:

so just
change x by (x velocity)
change y by (y velocity)
if touching [ v], bounce :: motion
in one block?

(for the bounce on sprite block, use this topic)
The only bounce block that exists is

if on edge, bounce

There is no dropdown.
ZippyZebraZoom85749
Scratcher
100+ posts

move and collide block

some1atskool wrote:

No support, the workaround is super easy

define change x by (x_change) change y by (y_change) until <when> with speed (speed)
repeat until <when :: custom-arg>
change x by ((x_change) / (speed))
change y by ((y_change) / (speed))
end
you do realize treating a custom input boolean like that won't work right?
I_wantasheep
Scratcher
1000+ posts

move and collide block

guys i know the dropdown bounce doesnt exist, that's why i put a link to the discussion about it

I_wantasheep wrote:

so just
change x by (x velocity)
change y by (y velocity)
if touching [ v], bounce :: motion
in one block?

(for the bounce on sprite block, use this topic)

Last edited by I_wantasheep (Yesterday 21:06:54)

coolgamemaker496
Scratcher
31 posts

move and collide block

some1atskool wrote:

No support, the workaround is super easy

define change x by (x_change) change y by (y_change) until <when> with speed (speed)
repeat until <when :: custom-arg>
change x by ((x_change) / (speed))
change y by ((y_change) / (speed))
end
sorry i am not the best at scratch ):
abrakaidabra
Scratcher
500+ posts

move and collide block

ZippyZebraZoom85749 wrote:

some1atskool wrote:

No support, the workaround is super easy

define change x by (x_change) change y by (y_change) until <when> with speed (speed)
repeat until <when :: custom-arg>
change x by ((x_change) / (speed))
change y by ((y_change) / (speed))
end
you do realize treating a custom input boolean like that won't work right?
Custom booleans work. Do you mean it won't work specifically for the collisions?

Powered by DjangoBB