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
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.
Offline
Thanks thats is helping but i still need to find away so that the level ends when you plant is complete
Offline
Do you have a level variable, or do you want the game to end?
Offline
no in dont have a level variable, sorry, im kinda new so i dont know what that is
Offline
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
Thanks for the help guys ive figured it out
Offline