This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-06-25 14:50:39

wahoo77
New Scratcher
Registered: 2012-06-17
Posts: 27

My Variables won't stay put.

I am trying to make a code-cracker game.  I have four different variables for the four different numbers.  My problem is that the variables reset when I uploaded it.  I went into the editor to fix it, reuploaded it and it happened again.  Also, for some reason all my variables gat a stage added at the beginning og their name.   

Here is the link to my project if you need it: http://scratch.mit.edu/projects/wahoo77/2618241

Offline

 

#2 2012-06-25 15:01:07

zammer990
Scratcher
Registered: 2012-01-22
Posts: 500+

Re: My Variables won't stay put.

It get's that added due to it being a local variable, make it global for that to disappear.


http://i45.tinypic.com/2ynq7nn.jpg Play now!

Offline

 

#3 2012-06-25 15:17:52

wahoo77
New Scratcher
Registered: 2012-06-17
Posts: 27

Re: My Variables won't stay put.

It is global in my editor, it somehow turns local in the upload.

Offline

 

#4 2012-06-25 15:31:35

zammer990
Scratcher
Registered: 2012-01-22
Posts: 500+

Re: My Variables won't stay put.

I see what you mean, I think the online viewer adds "stage" to shown globals. And I have no means to prevent it other than to say make a sprite with a name that will suit it; ie."code number1" with "code" being a sprite and the numbers being local.

Last edited by zammer990 (2012-06-25 15:33:29)


http://i45.tinypic.com/2ynq7nn.jpg Play now!

Offline

 

#5 2012-06-25 15:42:38

wahoo77
New Scratcher
Registered: 2012-06-17
Posts: 27

Re: My Variables won't stay put.

That would work, but how do you keep the variables from resetting to the top-left of the screen.

Offline

 

#6 2012-06-25 15:46:39

wahoo77
New Scratcher
Registered: 2012-06-17
Posts: 27

Re: My Variables won't stay put.

Also, I could just change the form of the variable if the veiwer didn't stop resetting them to the name and number view

Offline

 

#7 2012-06-25 15:48:28

Molybdenum
Scratcher
Registered: 2012-06-17
Posts: 1000+

Re: My Variables won't stay put.

wahoo77 wrote:

Also, I could just change the form of the variable if the veiwer didn't stop resetting them to the name and number view

Saving hidden variables auto-resets them to default. I don't know why.


"The Enrichment Center is required to remind you that you will be baked, and then there will be cake."
(|Balls and Platforms: Stay on!|) (|NaOS-H: An operating system... Or is it?|)

Offline

 

#8 2012-06-25 15:50:17

wahoo77
New Scratcher
Registered: 2012-06-17
Posts: 27

Re: My Variables won't stay put.

Molybdenum wrote:

wahoo77 wrote:

Also, I could just change the form of the variable if the veiwer didn't stop resetting them to the name and number view

Saving hidden variables auto-resets them to default. I don't know why.

That should help thanks

Offline

 

Board footer