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

#1 2010-06-04 03:37:50

Subh
Scratcher
Registered: 2010-05-25
Posts: 100+

Features that I want to use in my next project

I am making a GUI encrypter-decrypter using Scratch.

For that I need these features very much -
1) a button/ program (like stamp) which can alter the sprite under it when it stamps
2) a way to find the no. of the Colour of a Given Pixel (FAST because I'll use it atleast 10 times in 1 project)

Plus can anyone answer this maths question (It is also very much needed for the program) -
You have x numbers and you want to store it in x-1 variables. After you extract the values from the variables, you can process it to find the actual no.Can this be done?
[The variables can have values as a+b instead of a]

Please can anyone answer the questions I am asking. I would be very obliged if anyone answers it.

Thank You


http://wiki.scratch.mit.edu/skins/scratch/logo.png     I'M IN Scratch Wiki .... ARE YOU ????

Offline

 

#2 2010-06-04 12:17:08

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Features that I want to use in my next project

If you use Panther; most, if not all of these things are doable.


You can now reach me on Twitter @johnnydean1_

Offline

 

#3 2010-06-04 12:18:22

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Features that I want to use in my next project

Please explain the Maths part.


You can now reach me on Twitter @johnnydean1_

Offline

 

#4 2010-06-04 12:36:11

Subh
Scratcher
Registered: 2010-05-25
Posts: 100+

Re: Features that I want to use in my next project

johnnydean1 wrote:

Please explain the Maths part.

It means that I have 4 variables where I can store a no.(Suppose I store a+b).But I have to store 5 variables.
Before and after storing it, I can process it.
(e.g. if one variable has a+b and the other has a, then I can use the sum and difference of the 2 variable to get the answer.)

Can I do it?
[I HOPE I'M CLEAR NOW]


http://wiki.scratch.mit.edu/skins/scratch/logo.png     I'M IN Scratch Wiki .... ARE YOU ????

Offline

 

#5 2010-06-04 12:57:32

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Features that I want to use in my next project

Why dont you store it like set Stored Variable to:  Variable-A/Variable-B

E.G putting a '/' in the middle then make:

Set Temp.1 to 0
Set Temp.2 to  (nothing)
Set Stored Variable to join (Stored Variable) and '/')
repeat (length of Stored Variable)
change Temp.1 by 1
if <not<letter Temp.1 of Stored Variable = />
set Temp.2 to (join (Temp.2) and (Letter Temp.1 of Stored Variable)
ELSE
add Temp.2 to List Of Variables
set Temp.2 to  (Nothing)
________________________________________________________________
______________________________


Try that instead. You are then left with your variables in a list calles 'List of Variables'


You can now reach me on Twitter @johnnydean1_

Offline

 

#6 2010-06-04 15:20:18

Subh
Scratcher
Registered: 2010-05-25
Posts: 100+

Re: Features that I want to use in my next project

Actually, the variables I am using are the colour no. of a given pixel . So I cannot use functions like join..... All I can do is simple things.


http://wiki.scratch.mit.edu/skins/scratch/logo.png     I'M IN Scratch Wiki .... ARE YOU ????

Offline

 

#7 2010-06-04 15:27:17

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Features that I want to use in my next project

How are you getting the colours?


You can now reach me on Twitter @johnnydean1_

Offline

 

#8 2010-06-05 01:29:00

Subh
Scratcher
Registered: 2010-05-25
Posts: 100+

Re: Features that I want to use in my next project

??????????????????????????????
My idea is that you replace a pixel in any ordinary file with YOUR pixel that contains encrypted information.After you extract the information, you replace them with the Original Pixel.


http://wiki.scratch.mit.edu/skins/scratch/logo.png     I'M IN Scratch Wiki .... ARE YOU ????

Offline

 

#9 2010-06-05 08:23:18

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: Features that I want to use in my next project

Subh wrote:

??????????????????????????????
My idea is that you replace a pixel in any ordinary file with YOUR pixel that contains encrypted information.After you extract the information, you replace them with the Original Pixel.

Yeah, Id use Panther for something like this, Take a look at the colour options, theres the pixel perfect colour reporter. Plus the ability to turn colours into hex code and from hex code to colour!
http://img401.imageshack.us/img401/7741/colourblocks.png


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

Board footer