Discuss Scratch

smellyellie1234
Scratcher
51 posts

A little help please?

I have this ATM Simulation Project and it has some massive problems. I have it so you can enter a pin code but whenever the keys on the keypad are pressed it doesn't change what it should. That probably didn't make sense. Click here to go to my project and find what I'm going on about so you can please help me http://scratch.mit.edu/projects/12112966/
Photoguy77
Scratcher
100+ posts

A little help please?

OK. Use this script:
when this sprite clicked
broadcast [what ever number the sprite is]
Then set a variable to that number. I hope this helps!

-Photoguy77

“Without enjoying, one will never truly learn” ~Flome

“Finding happiness starts in you” ~ProdigyZeta7

JAVAProgramming
Scratcher
100+ posts

A little help please?

I would use:

When this sprite clicked:
change pin#s by 1,
if pin#s = 1,
set # Pin 1(or whatever you have the variables you can change) to (number that is on the button)
if pin#s = 2,
set # Pin 2(or whatever you have the variables you can change) to (number that is on the button)
if pin#s = 3,
set # Pin 3(or whatever you have the variables you can change) to (number that is on the button)


Sorry I didn't use Scratchblocks, I mess them up.


Hope this helps

My Newest Project, Come Check It Out
Dots, On Scratch
Want to change the way we count? The Dozenal System.

“The story so far:
In the beginning the Universe was created.
This has made a lot of people very angry and been widely regarded as a bad move.”
― Douglas Adams, The Restaurant at the End of the Universe
drmcw
Scratcher
1000+ posts

A little help please?

I replied on your other topic where you asked me how I'd do it. I've given an example there which may help?

10 !
ScratchVaders or Galaga?
Maybe Eliza can help you decide?

Powered by DjangoBB