Hello, I have a question.
I have created a "game" in which I put the blocks:
If "answer"="etc."
So, basically its a password thing. I was wondering if there is any
way that when the user is typing their password, the letters appear
As "****", like a real password system would use.
Any help is appreciated, thanks!
Offline
Actually, this can be done with Lists, let me upload my "OS" as, all it is currently, is a login.
Offline
http://scratch.mit.edu/projects/Magnie/769981
Offline
Magnie wrote:
Actually, this can be done with Lists, let me upload my "OS" as, all it is currently, is a login.
![]()
I think Hygt5 is asking whether or not you can make the character's in the ask box become "***" like a password. This isn't something Scratch can do at the moment, anything you type into and ask box is exactly what you type.
Offline
06dknibbs wrote:
Magnie wrote:
Actually, this can be done with Lists, let me upload my "OS" as, all it is currently, is a login.
![]()
I think Hygt5 is asking whether or not you can make the character's in the ask box become "***" like a password. This isn't something Scratch can do at the moment, anything you type into and ask box is exactly what you type.
It is possible, but it's 'cheating'. You make a sprite that covers the chatbar, and it displays asterisks.
Whenever you push a key, it'll change costume to display the right amount of asterisks. How's that?
Offline
Jonathanpb wrote:
06dknibbs wrote:
Magnie wrote:
Actually, this can be done with Lists, let me upload my "OS" as, all it is currently, is a login.
![]()
I think Hygt5 is asking whether or not you can make the character's in the ask box become "***" like a password. This isn't something Scratch can do at the moment, anything you type into and ask box is exactly what you type.
It is possible, but it's 'cheating'. You make a sprite that covers the chatbar, and it displays asterisks.
Whenever you push a key, it'll change costume to display the right amount of asterisks. How's that?
![]()
That's pretty clever! I wonder if it would work?
Offline
Paddle2See wrote:
Jonathanpb wrote:
06dknibbs wrote:
I think Hygt5 is asking whether or not you can make the character's in the ask box become "***" like a password. This isn't something Scratch can do at the moment, anything you type into and ask box is exactly what you type.
It is possible, but it's 'cheating'. You make a sprite that covers the chatbar, and it displays asterisks.
Whenever you push a key, it'll change costume to display the right amount of asterisks. How's that?
![]()
That's pretty clever! I wonder if it would work?
Doesn't the ask block go right to the front? If it does, then whatever sprite you create would be pushed to the back anyway..
Edit: It actually works
You just have to tell the sprite with the asterisks "Forever, go to front".
Last edited by 06dknibbs (2009-11-22 17:24:03)
Offline
06dknibbs wrote:
Paddle2See wrote:
Jonathanpb wrote:
It is possible, but it's 'cheating'. You make a sprite that covers the chatbar, and it displays asterisks.Whenever you push a key, it'll change costume to display the right amount of asterisks. How's that?
![]()
That's pretty clever! I wonder if it would work?
Doesn't the ask block go right to the front? If it does, then whatever sprite you create would be pushed to the back anyway..
Edit: It actually worksYou just have to tell the sprite with the asterisks "Forever, go to front".
I wonder why no one ever thought of that, in many OS projects people use complicated password systems.
Offline
You can do the same method with lists and variables.
Offline
06dknibbs wrote:
You have to tell the sprite with the asterisks "Forever, go to front".
Oops! I forgot to mention that!
Offline
Oh, so that's what you meant.
But instead of costumes, it should be stamping.
Offline
ilikewaffles wrote:
i have a question, why does a sprite that has a script like this:
[blocks]<forever>
<go to[ the main sprite]
<end>[/blocks]
has a small lag when the main sprite moves? how do i solve it?
thankz
If you want to ask a question, please don't post it in an existing topic. Post a new topic instead. Thanks!
Offline
ilikewaffles wrote:
i have a question, why does a sprite that has a script like this:
[blocks]<forever>
<go to[ the main sprite]
<end>[/blocks]
has a small lag when the main sprite moves? how do i solve it?
thankz
Like hmnwilson said. Post in a new topic.
it causes a lag because it is continually checking and setting it's x and y to the main sprites' x and y. No work around. Unless you make it so when the main sprite moves, it broadcasts a message. Then when the other sprite receives it, it sets the x and y to the main sprite's x and y.
Offline