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

#1 2007-05-28 23:45:29

Drakonan
Scratcher
Registered: 2007-05-26
Posts: 4

Some Questions

Can Someone Please Answer Some questions?

1. Is it Possible to Have A Pass Word System? If so How?

2. How do you Make a Sprite Bounce Off Something Like it Bounces of a wall If you Put the Code "If touching wall, Bounce".

Offline

 

#2 2007-05-29 09:29:40

Duncan
Scratcher
Registered: 2007-05-15
Posts: 47

Re: Some Questions

Question 2:

Use the touching test in the Sensing instructions and a negative number to move back so many steps...

    If touching wallSprite
        Move -10 steps

Offline

 

#3 2007-05-29 12:56:17

kevin_karplus
Scratcher
Registered: 2007-04-27
Posts: 1000+

Re: Some Questions

One could program a password feature into a program, but it would be pretty easy to defeat, since the code is accessible and modifiable.

Offline

 

#4 2007-05-29 15:38:03

tammy
Scratcher
Registered: 2007-03-07
Posts: 57

Re: Some Questions

Hi Drakonan,

Question 1:  You can do what Duncan suggested, and you might also try putting a "turn 180 degrees" block in the if statement:
    If touching wallSprite
        Move -10 steps
        turn 180 degrees

Question 2:  There used to be a project on the website that did just that.  I've asked the user to re-post it here:
http://scratch.mit.edu/projects/xyxzergames/2867

In the meantime, you can try having a variable that gets incremented each time a letter is pressed.  Then, once all the letters of the password have been pressed, you can continue with the project.

Hope that helps!
-Tammy

Offline

 

#5 2007-06-02 22:18:53

xyxzergames
Scratcher
Registered: 2007-04-17
Posts: 28

Re: Some Questions

Hi there, I am the person who made the script mentioned above! It is now online again at:
http://scratch.mit.edu/projects/xyxzergames/9676
Enjoy!

Last edited by xyxzergames (2007-06-02 22:19:31)


Tip of the Hat UNIVERSE - A Website for our friends, TOTH Productions
http://www.ftcsm.co.nr/webmaster/UNIVERSE
Help Stop GLOBAL WARMING
http://www.stopglobalwarming.org

Offline

 

Board footer