Hello!
Recently I noticed that while many people are familiar with block code, there could be a small group of people who aren’t and are instead more used to written text code. so I decided to compare block code blocks and written code functions to help that group of people understand GKC’s block code (if this isn’t allowed please let me know as I’m having trouble understanding if it is or isn’t myself)
Check if editing. Don’t check for fun. Ask before editing.
Also, you can edit the table directly which is a lot easier! Click the pencil icon to the right of it to open the table interface!
Block Code and Written Code Comparisons.
GKC Block Code
Python
Javascript
Add item () to activity feed
print()
console.log("text")
Broadcast Message on Channel ()
NameHere():
function nameHere() {}
Set Variable to ()
local variable = ()
let nameHere = "text" // text stringlet numberHere = 7 //number
Set Property () Value ()
global variable = ()
let numberHere = 7 //declare outside ofblock to be globally scoped
Sets a variable only accessible by this one script or function.
global.name = "text" | global.name = 312
Sets a variable that is accessible anywhere
if ( expression ) { script }
Check if a value or equation is true and if it is do an action.
name = "text" + "text"
makes a new string value with 2 or more existing string values
irandom_range(min, max)
Gets a random integer between do given integers.
of course more will be added later, these are just the first ones I thought of.
(feel free to tell me if this belongs in Community Made Guides or Devices)
Okay I added the Javascript, a check box and explanation, some formatting, and a contributors section. I can remove the other stuff if you want, just thought it’d be helpful.
I believe you added this and I think that using the concat() function would be better for this. Here’s a link explaining: JavaScript String concat() Method.
yeah, what I’m saying is you can use channels to brodcast for an action that you chose for the game to do when recieving on that channel (that’s how I’m comparing functions and channels)