generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: ##: How do I make something grow like a plant?

Previous Thread :: Next Thread 
iCherryBeary is not online. iCherryBeary
Joined: 10 Feb 2012
Total Posts: 1000
23 Feb 2015 02:16 PM
Im so sorry, it does seem so simple, but I would appreciate anything you have to tell me. Im brand new at this, please be patient ;-;
Report Abuse
TheCurrencyExchange is not online. TheCurrencyExchange
Joined: 09 Dec 2012
Total Posts: 6704
23 Feb 2015 02:19 PM
increase it's size ...?
Report Abuse
iCherryBeary is not online. iCherryBeary
Joined: 10 Feb 2012
Total Posts: 1000
23 Feb 2015 02:23 PM
No, like by itself. I will need to grow at least 4 time.
Report Abuse
TheCurrencyExchange is not online. TheCurrencyExchange
Joined: 09 Dec 2012
Total Posts: 6704
23 Feb 2015 02:25 PM
every time you want it to grow
increase its size
or if you're making something out of many parts
make a model of stage 1, 2, 3 and 4 of growth and put them in serverstorage
then when you want it to grow destroy the old one and clone the new one into workspace
Report Abuse
TheCurrencyExchange is not online. TheCurrencyExchange
Joined: 09 Dec 2012
Total Posts: 6704
23 Feb 2015 02:26 PM
and for automation
use a for loop
for i=1,4 do
wait(30)
--code to grow plant
end
Report Abuse
iCherryBeary is not online. iCherryBeary
Joined: 10 Feb 2012
Total Posts: 1000
23 Feb 2015 02:26 PM
Alright, I will see if that works. Is there any other way then making 4 of something? 0.0
Report Abuse
MillerSoRock is not online. MillerSoRock
Joined: 27 Feb 2010
Total Posts: 4888
23 Feb 2015 02:28 PM
Lol'd. I see you're in a tycoon.
And want to make something similar to it.

Don't worry. When you get your tycoon, and understand how tycoons work. You'll be able to "grow plants" with ease. Just add a different model.
Report Abuse
iCherryBeary is not online. iCherryBeary
Joined: 10 Feb 2012
Total Posts: 1000
23 Feb 2015 02:29 PM
Im not in a tycoon .-. Im in a farm game, and yes, I want to make it similar to the game Im in.
Report Abuse
MillerSoRock is not online. MillerSoRock
Joined: 27 Feb 2010
Total Posts: 4888
23 Feb 2015 02:32 PM
That's still a tycoon...
You're trying to grow crops for profit.
Report Abuse
TheCurrencyExchange is not online. TheCurrencyExchange
Joined: 09 Dec 2012
Total Posts: 6704
23 Feb 2015 02:33 PM
well uh its a bit like animation
you have to make many images to make one moving image
the computer has no imagination; unless you write code to make it generate new plants it isn't going to have a clue how to make the plants
unless you want to write that code which would be far more difficult you can't make it generate plants for you

everything in programming must be completely specific otherwise the computer won't know what to do
Report Abuse
iCherryBeary is not online. iCherryBeary
Joined: 10 Feb 2012
Total Posts: 1000
23 Feb 2015 02:48 PM
It isnt working as of yet, but I will keep working on it...
Report Abuse
Skyman772 is not online. Skyman772
Joined: 20 Mar 2012
Total Posts: 9305
23 Feb 2015 02:58 PM
First you need to figure out HOW it grows, like does all dimensions of it grow or just one?

If so, I'd do this:

function Grow(part,growthSize,growthSpeed) -- set part to the part you wanna grow, growthSize to the size you want the part to grow to, and growthSpeed to amount of studs it grows in a second
for currentGrowth = 0, growthSpeed, growthSize do
part.Size = Vector3.new(part.Size.X,(part.Size.Y + currentGrowth),part.Size.Z)
wait(1)
end
end

Grow(game.Workspace.Part,10,1)

I set it to the Y axis, but if you follow the syntax you can set it to whatever you want.
Report Abuse
iCherryBeary is not online. iCherryBeary
Joined: 10 Feb 2012
Total Posts: 1000
23 Feb 2015 03:07 PM
Alright, I will give it a go :D Thanks everyone for all the help! :3
Report Abuse
Skyman772 is not online. Skyman772
Joined: 20 Mar 2012
Total Posts: 9305
23 Feb 2015 03:07 PM
You're welcome!
Report Abuse
LegendaryAccount is not online. LegendaryAccount
Joined: 02 Jun 2010
Total Posts: 13193
23 Feb 2015 03:10 PM
sky shouldnt you use couritein wrap in the function so it will do it stuff while the rest of the code is running like tween position does
Report Abuse
Skyman772 is not online. Skyman772
Joined: 20 Mar 2012
Total Posts: 9305
23 Feb 2015 03:11 PM
You can do if you want!
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image