Discuss Scratch

commarman
Scratcher
1 post

Is there a way to hide code from users when they go into 'view code' mode?

I am having trouble trying to hide codes from people in my game. I want it so you have to get to a certain thing in the game and be able retrieve it later by using a code (so they can copy it and re-enter it to get their items) . If there is a way to hide code like that from other users could someone please tell me.
Just_Ciaran
Scratcher
100+ posts

Is there a way to hide code from users when they go into 'view code' mode?

As explained in the Scratch Guidelines or something, the whole point about Scratch is to share code so I'm pretty sure that you can't hide any code unless you just pile a bunch of code over that code or use a sort of computer crashing code which I think you may get banned if you use anyway but I'm not sure.
TheCentipede
Scratcher
100+ posts

Is there a way to hide code from users when they go into 'view code' mode?

Just Ciaran is right, Scratch doesn't allow for hiding codes because newer scratchsters might want to look at certain codes to figure out how they work so they can learn.
TheLogFather
Scratcher
1000+ posts

Is there a way to hide code from users when they go into 'view code' mode?

You might find this helpful:


https://scratch.mit.edu/projects/164028530/



Last edited by TheLogFather (July 8, 2017 10:50:46)

footsocktoe
Scratcher
1000+ posts

Is there a way to hide code from users when they go into 'view code' mode?

commarman wrote:

I am having trouble trying to hide codes from people in my game. I want it so you have to get to a certain thing in the game and be able retrieve it later by using a code (so they can copy it and re-enter it to get their items) . If there is a way to hide code like that from other users could someone please tell me.

I think you mean “code” differently from program coding, right?

If you want to hide something, you can't completely hide it, but you can hide it from people who are not experts with Scratch. For example, one way is to bury it in a list of similar codes. For instance, it is one of a hundred similar items. Then you make the code that finds that item be very complicated and obscure. Give your variables misleading names so it looks like they are doing something else. Use several different sprites with misleadingly named broadcast blocks.

A method like that will hide the code from 99% of Scratchers.
TURTLEDUCK1234
Scratcher
5 posts

Is there a way to hide code from users when they go into 'view code' mode?

well you could try that or morse code see the pun. ok for reala way to to this is a pasword like that first one but this time you have it like this..
ask [] and wait
then put the pascode you want in then in the sound files have a reversed message and in some spots mees it up like robot them or change the speed unreverse some to make that harder but what will it say? a project name now you could not have this shared but you may delete it so it has to be shared then have the project have the way of finding it in encryption and messed up or in its art files if you like star wars just have aurebesh whriting link at the top and boom it works then have the paswrod hidden in a list block name varibible name or yada yada do something else i did something like this for my glitch_cat games for the first boss and no ones found the adio so yeet
bambang112481632
Scratcher
21 posts

Is there a way to hide code from users when they go into 'view code' mode?

commarman wrote:

I am having trouble trying to hide codes from people in my game. I want it so you have to get to a certain thing in the game and be able retrieve it later by using a code (so they can copy it and re-enter it to get their items) . If there is a way to hide code like that from other users could someone please tell me.
if you're talking stuff like, passwords, then just encrypt it, new scratchers won't understand, and experienced ones will be too lazt to
AyaanRoddam
Scratcher
1 post

Is there a way to hide code from users when they go into 'view code' mode?

TheCentipede wrote:

Just Ciaran is right, Scratch doesn't allow for hiding codes because newer scratchsters might want to look at certain codes to figure out how they work so they can learn.
I am feeling bad and I will.
deck26
Scratcher
1000+ posts

Is there a way to hide code from users when they go into 'view code' mode?

AyaanRoddam wrote:

TheCentipede wrote:

Just Ciaran is right, Scratch doesn't allow for hiding codes because newer scratchsters might want to look at certain codes to figure out how they work so they can learn.
I am feeling bad and I will.
Please don't necropost.
TURTLEDUCK1234
Scratcher
5 posts

Is there a way to hide code from users when they go into 'view code' mode?

deck26 wrote:

AyaanRoddam wrote:

TheCentipede wrote:

Just Ciaran is right, Scratch doesn't allow for hiding codes because newer scratchsters might want to look at certain codes to figure out how they work so they can learn.
I am feeling bad and I will.
Please don't necropost.
Well that is a lie you can put code on top of code thus, hiding the code.
deck26
Scratcher
1000+ posts

Is there a way to hide code from users when they go into 'view code' mode?

TURTLEDUCK1234 wrote:

deck26 wrote:

AyaanRoddam wrote:

TheCentipede wrote:

Just Ciaran is right, Scratch doesn't allow for hiding codes because newer scratchsters might want to look at certain codes to figure out how they work so they can learn.
I am feeling bad and I will.
Please don't necropost.
Well that is a lie you can put code on top of code thus, hiding the code.
and it's trivial to right click in the scripting area and tidy up the scripts so it's very easy to get it so show.
TURTLEDUCK1234
Scratcher
5 posts

Is there a way to hide code from users when they go into 'view code' mode?

deck26 wrote:

TURTLEDUCK1234 wrote:

deck26 wrote:

AyaanRoddam wrote:

TheCentipede wrote:

Just Ciaran is right, Scratch doesn't allow for hiding codes because newer scratchsters might want to look at certain codes to figure out how they work so they can learn.
I am feeling bad and I will.
Please don't necropost.
Well that is a lie you can put code on top of code thus, hiding the code.
and it's trivial to right click in the scripting area and tidy up the scripts so it's very easy to get it so show.
well that's not true you can also hide serteain numbers with varbeils and opreators bye putting a varibelthing like the following
set [ (foo)v] to [[ (foo)v}]
but with you know not the same varbeil and to make it super hidden have a ton of that same varibel but a key diffrent and have them all set to a random number confusing the #$&% out of scratchers while you sit back with your code also have a random string of numbers in your costumes and shrink it and if someone copys yo art prove it by the string of numbers!!!!!!

Last edited by TURTLEDUCK1234 (Jan. 21, 2022 14:11:29)

templeofbruh2
Scratcher
29 posts

Is there a way to hide code from users when they go into 'view code' mode?

you could put the code under a comment but the others are better

Powered by DjangoBB