Discuss Scratch

BosenChang
Scratcher
1000+ posts

Copy codes

--Explosion-- wrote:

BosenChang wrote:

when green flag clicked
wait (1) secs
tell [sprite1 v] and myself to {
say [hi]
}::control
I don't think the “tell ___ and myself” block is necessary, that block without the myself in there does the job.
The
tell [sprite1 v] and myself {
}::control
helps if you want the sprite that has the code also use the code.

Last edited by kaj (The day after tomorrow 01:01:01)
Tomatoes are salty? I didn't know that!
Be moist
(-!*o_o*!-) // protecty, my signature kumquat protector. *power level: infinty *magic level: infinty
(?-i_i-?) // claculately, caculates weaknesses and finds out strengths to...
// evil qumquats



My signature change:
Some people don't have empathy; while others do.
Some people false-report projects, and more necropost.

Hello there! I can sometimes help you, or you can help me!


See my projects
I am not advertising. This is a signature. It appers underneath everything I write! To change your signature, go to Discussion Home and scroll down to “change my signature.”
see my projects::looks
say [hello]
If you want to see my topic “What makes a good topic?”, then go to Which topics are good?
Other helpful:
Lists of suggestions by SSB20 *please call him by his nickname*
Which topics are good? (already included) by me
--Explosion--
Scratcher
1000+ posts

Copy codes

BosenChang wrote:

--Explosion-- wrote:

BosenChang wrote:

when green flag clicked
wait (1) secs
tell [sprite1 v] and myself to {
say [hi]
}::control
I don't think the “tell ___ and myself” block is necessary, that block without the myself in there does the job.
The
tell [sprite1 v] and myself {
}::control
helps if you want the sprite that has the code also use the code.
In that case you could just duplicate the code and put it above the loop or below it or if you wanted the code to run simultaneously you could use broadcasts.

Last edited by kaj (Tomorrow 00:00:00)
✰✩✭✴★--Explosion--★✴✭✩✰
Forum helper | boy | platformers | 14yrs | guitar | website


BosenChang
Scratcher
1000+ posts

Copy codes

--Explosion-- wrote:

How about this?
tell [sprite1 v] to {
move (10) steps::motion
}::controll
the reason why it did not show the right color is because you did controll, not control.

Last edited by kaj (The day after tomorrow 01:01:01)
Tomatoes are salty? I didn't know that!
Be moist
(-!*o_o*!-) // protecty, my signature kumquat protector. *power level: infinty *magic level: infinty
(?-i_i-?) // claculately, caculates weaknesses and finds out strengths to...
// evil qumquats



My signature change:
Some people don't have empathy; while others do.
Some people false-report projects, and more necropost.

Hello there! I can sometimes help you, or you can help me!


See my projects
I am not advertising. This is a signature. It appers underneath everything I write! To change your signature, go to Discussion Home and scroll down to “change my signature.”
see my projects::looks
say [hello]
If you want to see my topic “What makes a good topic?”, then go to Which topics are good?
Other helpful:
Lists of suggestions by SSB20 *please call him by his nickname*
Which topics are good? (already included) by me
BosenChang
Scratcher
1000+ posts

Copy codes

--Explosion-- wrote:

How about this?
tell [sprite1 v] to {
move (10) steps::motion
}::controll
the reason why it did not show the right color is because you did controll, not control.
...
...
this

Last edited by kaj (The day after tomorrow 01:01:01)
Tomatoes are salty? I didn't know that!
Be moist
(-!*o_o*!-) // protecty, my signature kumquat protector. *power level: infinty *magic level: infinty
(?-i_i-?) // claculately, caculates weaknesses and finds out strengths to...
// evil qumquats



My signature change:
Some people don't have empathy; while others do.
Some people false-report projects, and more necropost.

Hello there! I can sometimes help you, or you can help me!


See my projects
I am not advertising. This is a signature. It appers underneath everything I write! To change your signature, go to Discussion Home and scroll down to “change my signature.”
see my projects::looks
say [hello]
If you want to see my topic “What makes a good topic?”, then go to Which topics are good?
Other helpful:
Lists of suggestions by SSB20 *please call him by his nickname*
Which topics are good? (already included) by me
BosenChang
Scratcher
1000+ posts

Copy codes

this helps with:
when I receive [tell v]
tell [sprite2 v] to {
move (10) steps
}::control

Last edited by kaj (The day after tomorrow 01:01:01)
Tomatoes are salty? I didn't know that!
Be moist
(-!*o_o*!-) // protecty, my signature kumquat protector. *power level: infinty *magic level: infinty
(?-i_i-?) // claculately, caculates weaknesses and finds out strengths to...
// evil qumquats



My signature change:
Some people don't have empathy; while others do.
Some people false-report projects, and more necropost.

Hello there! I can sometimes help you, or you can help me!


See my projects
I am not advertising. This is a signature. It appers underneath everything I write! To change your signature, go to Discussion Home and scroll down to “change my signature.”
see my projects::looks
say [hello]
If you want to see my topic “What makes a good topic?”, then go to Which topics are good?
Other helpful:
Lists of suggestions by SSB20 *please call him by his nickname*
Which topics are good? (already included) by me
ioton
Scratcher
500+ posts

Copy codes

I don't think this is necessary.
tell [sprite v] and myself to {
easily workaroundable, with broadcasts :: grey
} :: control
when green flag clicked
broadcast [message v]
when I receive [message v] // in the sprite in which the message broacasted from
...
when I receive [message v] // in another sprite
...
Literally a three block workaround. Plus, how many times do you need this anyways?
tell [sprite v] to {
easily workaroundable, with broadcasts :: grey
} :: control
when green flag clicked
broadcast [message v]
when I receive [message v] // in another sprite
A two block workaround.
Those workarounds are all in the same category.
Plus, that's the purpose of broadcasts.
To tell other sprites to do something.
Are you trying to ruin broadcasts?
No support.


▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
▓░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▓
▓░░█████░░██████░░█████░░██████░░█░░░█░░░▓
▓░░░▒█▒▒▒░█▒▒▒▒█▒░░▒█▒▒▒░█▒▒▒▒█▒░██░░█▒░░▓
▓░░░░█▒░░░█▒░░░█▒░░░█▒░░░█▒░░░█▒░█▒█░█▒░░▓
▓░░░░█▒░░░█▒░░░█▒░░░█▒░░░█▒░░░█▒░█▒░██▒░░▓
▓░░█████░░██████▒░░░█▒░░░██████▒░█▒░░█▒░░▓
▓░░░▒▒▒▒▒░░▒▒▒▒▒▒░░░░▒░░░░▒▒▒▒▒▒░░▒░░░▒░░▓
▓░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▓
▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
BosenChang
Scratcher
1000+ posts

Copy codes

ioton wrote:

I don't think this is necessary.
tell [sprite v] and myself to {
easily workaroundable, with broadcasts :: grey
} :: control
when green flag clicked
broadcast [message v]
when I receive [message v] // in the sprite in which the message broacasted from
...
when I receive [message v] // in another sprite
...
Literally a three block workaround. Plus, how many times do you need this anyways?
tell [sprite v] to {
easily workaroundable, with broadcasts :: grey
} :: control
when green flag clicked
broadcast [message v]
when I receive [message v] // in another sprite
A two block workaround.
Those workarounds are all in the same category.
Plus, that's the purpose of broadcasts.
To tell other sprites to do something.
Are you trying to ruin broadcasts?
No support.
Have not you read what @–explosion– wrote? Here it is:

--explosion-- wrote:

Although the workaround is fairly simple the block I suggested would help with the organization of code greatly, it would also be usefull for games like scrolling platformers where the ground needs to move and a tick broadcast can cause bugs.
When using broadcasts they're also slower if you use the broadcast and wait block and although faster if you just use the regular broadcast the code from the two sprites may not run at the same time causing jittering and possible glitches. That is why I suggested this.
In addition, this block would enable much more precision with the timing of your code without actually making like 20 broadcasts to do the same thing.
Last but not least this block would be incredibly usefull in layering sprites.

Last edited by kaj (The day after tomorrow 01:01:01)
Tomatoes are salty? I didn't know that!
Be moist
(-!*o_o*!-) // protecty, my signature kumquat protector. *power level: infinty *magic level: infinty
(?-i_i-?) // claculately, caculates weaknesses and finds out strengths to...
// evil qumquats



My signature change:
Some people don't have empathy; while others do.
Some people false-report projects, and more necropost.

Hello there! I can sometimes help you, or you can help me!


See my projects
I am not advertising. This is a signature. It appers underneath everything I write! To change your signature, go to Discussion Home and scroll down to “change my signature.”
see my projects::looks
say [hello]
If you want to see my topic “What makes a good topic?”, then go to Which topics are good?
Other helpful:
Lists of suggestions by SSB20 *please call him by his nickname*
Which topics are good? (already included) by me
BosenChang
Scratcher
1000+ posts

Copy codes

Oh… what a long time BUMP!


--Explosion-- wrote:

BosenChang wrote:

when green flag clicked
wait (1) secs
tell [sprite1 v] and myself to {
say [hi]
}::control
I don't think the “tell ___ and myself” block is necessary, that block without the myself in there does the job.
It doesn't run at the same time.

Last edited by kaj (The day after tomorrow 01:01:01)
Tomatoes are salty? I didn't know that!
Be moist
(-!*o_o*!-) // protecty, my signature kumquat protector. *power level: infinty *magic level: infinty
(?-i_i-?) // claculately, caculates weaknesses and finds out strengths to...
// evil qumquats



My signature change:
Some people don't have empathy; while others do.
Some people false-report projects, and more necropost.

Hello there! I can sometimes help you, or you can help me!


See my projects
I am not advertising. This is a signature. It appers underneath everything I write! To change your signature, go to Discussion Home and scroll down to “change my signature.”
see my projects::looks
say [hello]
If you want to see my topic “What makes a good topic?”, then go to Which topics are good?
Other helpful:
Lists of suggestions by SSB20 *please call him by his nickname*
Which topics are good? (already included) by me
BosenChang
Scratcher
1000+ posts

Copy codes

Bump, why can't people read this

Last edited by kaj (The day after tomorrow 01:01:01)
Tomatoes are salty? I didn't know that!
Be moist
(-!*o_o*!-) // protecty, my signature kumquat protector. *power level: infinty *magic level: infinty
(?-i_i-?) // claculately, caculates weaknesses and finds out strengths to...
// evil qumquats



My signature change:
Some people don't have empathy; while others do.
Some people false-report projects, and more necropost.

Hello there! I can sometimes help you, or you can help me!


See my projects
I am not advertising. This is a signature. It appers underneath everything I write! To change your signature, go to Discussion Home and scroll down to “change my signature.”
see my projects::looks
say [hello]
If you want to see my topic “What makes a good topic?”, then go to Which topics are good?
Other helpful:
Lists of suggestions by SSB20 *please call him by his nickname*
Which topics are good? (already included) by me
ioton
Scratcher
500+ posts

Copy codes

BosenChang wrote:

Bump, why can't people read this
Because people aren't interested. Not everybody's suggestions are supposed to be on the first page and active
Can you please stop bumping?

Last edited by ioton (Aug. 12, 2020 11:34:49)



▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
▓░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▓
▓░░█████░░██████░░█████░░██████░░█░░░█░░░▓
▓░░░▒█▒▒▒░█▒▒▒▒█▒░░▒█▒▒▒░█▒▒▒▒█▒░██░░█▒░░▓
▓░░░░█▒░░░█▒░░░█▒░░░█▒░░░█▒░░░█▒░█▒█░█▒░░▓
▓░░░░█▒░░░█▒░░░█▒░░░█▒░░░█▒░░░█▒░█▒░██▒░░▓
▓░░█████░░██████▒░░░█▒░░░██████▒░█▒░░█▒░░▓
▓░░░▒▒▒▒▒░░▒▒▒▒▒▒░░░░▒░░░░▒▒▒▒▒▒░░▒░░░▒░░▓
▓░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▓
▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
BosenChang
Scratcher
1000+ posts

Copy codes

Bump,

ioton wrote:

BosenChang wrote:

Bump, why can't people read this
Because people aren't interested. Not everybody's suggestions are supposed to be on the first page and active
Can you please stop bumping?
??!!

Last edited by kaj (The day after tomorrow 01:01:01)
Tomatoes are salty? I didn't know that!
Be moist
(-!*o_o*!-) // protecty, my signature kumquat protector. *power level: infinty *magic level: infinty
(?-i_i-?) // claculately, caculates weaknesses and finds out strengths to...
// evil qumquats



My signature change:
Some people don't have empathy; while others do.
Some people false-report projects, and more necropost.

Hello there! I can sometimes help you, or you can help me!


See my projects
I am not advertising. This is a signature. It appers underneath everything I write! To change your signature, go to Discussion Home and scroll down to “change my signature.”
see my projects::looks
say [hello]
If you want to see my topic “What makes a good topic?”, then go to Which topics are good?
Other helpful:
Lists of suggestions by SSB20 *please call him by his nickname*
Which topics are good? (already included) by me

Powered by DjangoBB