Discuss Scratch

--XGladiatorX--
Scratcher
1 post

HOW DO I USE OPERATOR BLOCK and how to make platformer?!?!?!

I need answers been trying to figure out for months
The_Imaginarium
Scratcher
1000+ posts

HOW DO I USE OPERATOR BLOCK and how to make platformer?!?!?!

Use one of griffpatch’s tutorials. Or anybody’s. You can find some great ones on YouTube. I personally recommend FUNUT’s tutorial.

Last edited by The_Imaginarium (March 8, 2021 15:55:39)

ayyyyes10135
Scratcher
100+ posts

HOW DO I USE OPERATOR BLOCK and how to make platformer?!?!?!

--XGladiatorX-- wrote:

I need answers been trying to figure out for months


operator blocks are blocks that figure out equations for you. lets say

30+2

that all equals to 32. some blocks that have a circle around it can have operators
GAMER_6O7
Scratcher
100+ posts

HOW DO I USE OPERATOR BLOCK and how to make platformer?!?!?!

Operator blocks are usually used along with variables and control blocks. A variable like say timer that increases every second could be put in the operator and control like this:

iftimer=60thenhide
AksharPremnath
Scratcher
500+ posts

HOW DO I USE OPERATOR BLOCK and how to make platformer?!?!?!

Operator blocks are Math & Logic blocks:
<andnotsinof9
Scratchperson1000000
Scratcher
500+ posts

HOW DO I USE OPERATOR BLOCK and how to make platformer?!?!?!

the join block is the block meant for spots where you can say the users username and a dialog at the same time, for example:
sayjoinusername WHY ARE YOU HERE YOU ARE NOT SUPPOSED TO BE HEREfor1+1secs
or you can do it for keys that is not in the keys menu but keys that scratch can still detect, like:
keyjoinenterpressed?
the not block is to check if the condition is false, for example
ifnottouchingcolor?thenwait5secssaygood!for2secselsesayoh no!for2secs
Elemental_Warden
Scratcher
14 posts

HOW DO I USE OPERATOR BLOCK and how to make platformer?!?!?!

operator blocks are used for math and logic

D-ScratchNinja
Scratcher
1000+ posts

HOW DO I USE OPERATOR BLOCK and how to make platformer?!?!?!

Here's a super small example of an operator block:
setmy variabletomyvariable*2
So there's a variable block and you can drag an operator reporter block onto it, like the multiplication one. There I also have the left input be the variable, which you can drag and drop from the Variables category.

Does that get you started?

Also, for the platformer part, I'll link Griffpatch's tutorials.
Tutorial project (2015): https://scratch.mit.edu/projects/67727504
Scrolling YT series (2018 - 2020): 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10
Tile Scroll YT series (2021 - WIP): 1 , 2 , 3 , 4
yeet890000
Scratcher
17 posts

HOW DO I USE OPERATOR BLOCK and how to make platformer?!?!?!

Usually math blocks are used for complex proects
gotox:waitpickrandom1to10secsy:waitpickrandom1to10secs
Yusei-Fudo
Scratcher
1000+ posts

HOW DO I USE OPERATOR BLOCK and how to make platformer?!?!?!

yeet890000 wrote:

Usually math blocks are used for complex proects
gotox:waitpickrandom1to10secsy:waitpickrandom1to10secs

Sorry dude, there is so such thing as a wait () secs boolean block.

--XGladiatorX-- wrote:

I need answers been trying to figure out for months
For Scrolling games go onto YouTube to find tutorials.

For operators, which one do you want to know anyway?
Yusei-Fudo
Scratcher
1000+ posts

HOW DO I USE OPERATOR BLOCK and how to make platformer?!?!?!

ayyyyes10135 wrote:

--XGladiatorX-- wrote:

I need answers been trying to figure out for months


operator blocks are blocks that figure out equations for you. lets say

30+2

that all equals to 32. some blocks that have a circle around it can have operators

There are not just for math blocks, there are other kinds that detect things too like
joinworldletterofworldandor

I might've missed a few.
Scratchperson1000000
Scratcher
500+ posts

HOW DO I USE OPERATOR BLOCK and how to make platformer?!?!?!

Math:
+-*/mod
the pick random block is a block that picks a random number in between those numbers
movepickrandom1to10steps
the and block is to check is both conditions are true
ifkeyspacepressed?andi=10then. . .
the or block is to check if one of the conditions are true
ifSprite1saidCCCCC?orcolortouchingcolor?thensayCCCCCCforcoloreffectsecs
the letter of word is a thing that shows what letter of the word is, but it is not strict to letters, it can do numbers, and symbols.
letter1ofworldandletter1to5ofworld
the length of block is a block that checks how many characters are in a sentence, or word, remember, it is not strict to sentences and words, it can do symbols and numbers
lengthofparameters 10
and I have no idea what the round and of blocks do
mot687
Scratcher
54 posts

HOW DO I USE OPERATOR BLOCK and how to make platformer?!?!?!

Hi there!
I saw you needed help with operator blocks!
Let me give you a few examples

joinHello Friend!

That, If you clicked on it it would say “Hello Friend!”.

Ceilingof9

The ceiling of the number 9 would be 9!
Does that make sense?

If not, come to mot687 for more!

Powered by DjangoBB