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

#1 2010-05-10 21:35:30

MossyrockDyLAN
Scratcher
Registered: 2010-05-10
Posts: 5

Scratch Help

im am making a game where you click a dot and a plant grows. The dot represents Sunlight and you have to gather the sunlight for the plants, until they grow a flower at the top. At the moment when you click the dot the dot moves to a random place and moves in a random direction. One segement of plant is visible from the star and i want to click the dot and have the other plants change their costumes from the white square to the plant segement, one by one, so each click the next segement becomes part of the plant until they reach the top of the plant and a flower appears at the top. How will i program these segements and the flower to appear?

Thanks to anyone who tries to help.

Offline

 

#2 2010-05-11 07:10:03

MaxtheWeirdo
Scratcher
Registered: 2010-03-18
Posts: 500+

Re: Scratch Help

You could have it be one sprite with different costumes,
Then you could have the sunlight have a variable called "Sunlight Gathered" or something. Make sure it is for all sprites. Then, you could have a few if statements, like this:
if Sunlight is greater than 5
switch to costume x
..and you could change that to whatever.
Hope this helps.


My website. Hall Crawler My Awesome OS
It's just marketing, guys! Nothing sinister!

Offline

 

#3 2010-05-12 02:51:43

MossyrockDyLAN
Scratcher
Registered: 2010-05-10
Posts: 5

Re: Scratch Help

Thanks thats is helping but i still need to find away so that the level ends when you plant is complete

Offline

 

#4 2010-05-12 07:13:12

MaxtheWeirdo
Scratcher
Registered: 2010-03-18
Posts: 500+

Re: Scratch Help

Do you have a level variable, or do you want the game to end?


My website. Hall Crawler My Awesome OS
It's just marketing, guys! Nothing sinister!

Offline

 

#5 2010-05-16 23:24:40

MossyrockDyLAN
Scratcher
Registered: 2010-05-10
Posts: 5

Re: Scratch Help

no in dont have a level variable, sorry, im kinda new so i dont know what that is

Offline

 

#6 2010-05-16 23:41:56

fullmoon
Retired Community Moderator
Registered: 2007-06-04
Posts: 1000+

Re: Scratch Help

So this game you're making has multiple levels? Then you should create a variable named level and just change it by 1 every time you want to move to the next level (ie when the plant is complete).


http://i302.photobucket.com/albums/nn100/fullmoon32/wow.jpg

Offline

 

#7 2010-05-17 03:56:38

Scruffy222
Scratcher
Registered: 2010-05-15
Posts: 1

Re: Scratch Help

I don't get these. What are they?
[blocks]       ((  <*>  ))        ((  </>  ))        ((  <mod>  ))     <abs(     <round(       [/blocks]
Someone please help!

Last edited by Scruffy222 (2010-05-17 03:57:23)

Offline

 

#8 2010-05-23 23:25:54

MossyrockDyLAN
Scratcher
Registered: 2010-05-10
Posts: 5

Re: Scratch Help

Thanks for the help guys ive figured it out

Offline

 

Board footer