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

#1 2007-06-15 16:46:02

quinnriley
Scratcher
Registered: 2007-05-18
Posts: 7

Tamagotchi in scratch question.

I am making a tamagotchi in scratch, but I cannot find out how to make him move up and down while moving side to side, and still bounce when it hits the edge. Please help!

Offline

 

#2 2007-06-16 12:38:27

uncleclives
Scratcher
Registered: 2007-05-19
Posts: 21

Re: Tamagotchi in scratch question.

Check my code for the bouncing football in this program it might help...

http://scratch.mit.edu/projects/uncleclives/13973

Offline

 

#3 2007-06-16 13:42:24

quinnriley
Scratcher
Registered: 2007-05-18
Posts: 7

Re: Tamagotchi in scratch question.

Thank you for posting this, all I needed to do was add some change y by blocks that I did not see at first. But, now I have another question. Can I make everything stop when a message is broadcast, and then start again?

Offline

 

#4 2007-06-16 13:58:19

uncleclives
Scratcher
Registered: 2007-05-19
Posts: 21

Re: Tamagotchi in scratch question.

Two ways use a - broadcast command - followed by - stop script - to restart the script you could put in another broadcast command such as restart and on the script you stopped before put a - when I receive (restart) - command. Hope this makes sense I have used it in my above program for when the football reaches the ground to stop the ball and script and then restart the script when required.

Another way would be to set up a variable for example called motion and then put it into your script

if motion =0 then move 0 (stop movement of sprite)
if motion =1 then move 1 (move sprite)

Offline

 

Board footer