Discuss Scratch

Jbear_
Scratcher
1000+ posts

bounce

how can i make the square go towerds me, without using glide, beacuse glide if your close it goes SUPER SLOW | https://turbowarp.org/611977731
Blobdudefar
Scratcher
36 posts

bounce

forever
point towards [ player]
repeat until <touching [ player] ?>
move (1) steps
end
end

remove the forever loop if you want it to happen just once and not all the time.
cIoudyness
Scratcher
500+ posts

bounce

Jbear_ wrote:

how can i make the square go towerds me, without using glide, beacuse glide if your close it goes SUPER SLOW | https://turbowarp.org/611977731
how about use the above solution of saving direction (so you can still have the square spin) in a variable, pointing to the player, moving a couple steps and setting direction to your variable and turning a bit
Jbear_
Scratcher
1000+ posts

bounce

New issue , my clones keep overlapping, I want them to explode when they touch each other, how could I do that?
deck26
Scratcher
1000+ posts

bounce

Jbear_ wrote:

New issue , my clones keep overlapping, I want them to explode when they touch each other, how could I do that?
The touching sprite block works for clones as well. SpriteA won't see its name in the drop down for that block but if you select it in another sprite's coding area you can copy it across to spriteA.
Jbear_
Scratcher
1000+ posts

bounce

deck26 wrote:

Jbear_ wrote:

New issue , my clones keep overlapping, I want them to explode when they touch each other, how could I do that?
The touching sprite block works for clones as well. SpriteA won't see its name in the drop down for that block but if you select it in another sprite's coding area you can copy it across to spriteA.


Ok thanks
Jbear_
Scratcher
1000+ posts

bounce

New new problem : only one clone dies, I try to use a repeat 2 delete this clone block, but only one clones explodes, help
LittleHeroFish
Scratcher
100+ posts

bounce

Jbear_ wrote:

New new problem : only one clone dies, I try to use a repeat 2 delete this clone block, but only one clones explodes, help
because clones can only delete themselves
bSpyder
Scratcher
100+ posts

bounce

Jbear_ wrote:

New new problem : only one clone dies, I try to use a repeat 2 delete this clone block, but only one clones explodes, help
one clone is deleting before the other, therefore only one clone is recieving the collision. This can be fixed by adding wait 0 seconds before you explode the clone (delete clone)
Jbear_
Scratcher
1000+ posts

bounce

bSpyder wrote:

Jbear_ wrote:

New new problem : only one clone dies, I try to use a repeat 2 delete this clone block, but only one clones explodes, help
one clone is deleting before the other, therefore only one clone is recieving the collision. This can be fixed by adding wait 0 seconds before you explode the clone (delete clone)


I don’t understand
deck26
Scratcher
1000+ posts

bounce

If clone 1 detects a collision and deletes itself that may happen before clone 2 has run that part of the script so even though it has touched clone 1 it doesn't detect it. By making clone 1 hang around a little longer you give clone 2 time to also detect the contact.

Powered by DjangoBB