This course provides you with all the basic models, tools, and GUIs needed. It focuses primarily on coding and gives students an expandable and adaptable project they can use in their game development.
Some central concepts taught are
This course provides you with all the basic models, tools, and GUIs needed. It focuses primarily on coding and gives students an expandable and adaptable project they can use in their game development.
Some central concepts taught are
using module scripts in different ways
Using co-routines to pause and resume plant growth
creating and using animations
saving part positions and attributes to the data store.
ray casting to move and place parts
creating dictionaries of data that can be referred to from other scripts
coding and using surface, screen, and billboard GUI's
By the end of the project, students should have a farm to which they can add new crops and expand the farm to make it bigger.
As some coding concepts are complex, students should complete the following courses.
Learn To Code Games In Roblox Studio - Beginner
Roblox Intermediate Coding Course - Intermediate
The course structure has been designed to allow a working example to be tested at the end of most lessons.
Many concepts taught in the course can be re-purposed and used in entirely different projects.
To get the most out of the course, students should complete all videos in sequential order for sections one to five. The sixth section about animation is optional but does add a great finishing touch to the project.
Import the project model, and organise the project ready to start.
Use the changed event to update the GUI whenever the gold value changes.
Create a functions module script, and add a function to display feedback to the player.
Change the colour of the plots as they progress through their stages of growth using a variable called State.
Code the Rake, Bucket, and Seed Bag tools to use on the farm and grow crops.
Create a sunflower, pumpkin and corn seed to grow on the farm.
Add all the details about your crops to the seed module script.
Create conditional statements that guide the player to equip and use the right tools to get the job done.
Allow the player to collect water from the well to water the crops on the farm.
Create a special GUI that lets you see your variables change during the game and adjusts itself as you increase or decrease the number of variables in the project.
Create a start game script that gives each player their own farm.
Begin to develop a GUI that will hover above the ground showing the player which seeds they can plant, and allow them to click on a button to plant the seed.
Create a button for each seed that the player has in their inventory.
Write some code to get all the info about a seed from the seed dictionary and place it into the plot.
Spawn the correct plant and assign it to the plot, ready to grow and harvest.
Learn to use a coroutine function that pauses the code and lets players know they need to water their crops.
Let players see the plant grow, and create a harvest for them to collect.
Finish the code that allows the player to rake, plant, grow, and harvest a crop ready for the next planting.
Start to create the User Input Script that will allow the player to move and place their plots on their farm.
Use ray casting to change the colour of anything you click on in the project.
Spawn a placeholder plot ready for the player to move into place on their farm.
In this lesson, we create a recursive loop that will cause the plot to fly at the camera! Learn why this happens and how to fix it.
Use ray cast parameters to change the behaviour of the plot as we move it around in the workspace.
Stop players colliding with other players and plots colliding with players allowing for smoother gameplay.
Players can now buy a plot, move it around on their farm, and click the mouse to place it on their farm.
Refine where players can place their plots on the farm when they buy them.
Write a function that will check players have enough gold to purchase a plot.
Allow players to complete a purchase and place the plot on their farm.
Code each farm to spawn a field of positions where players can place their plots.
Fine-tune the plots' placement, allowing us to remember precisely where players placed them on their farms.
Create a GUI that allows your players to sell their excess seeds.
Let your players buy new seeds when they have made enough gold.
Display all the seed totals in a GUI for your players to see how many they have in their inventory.
Make adjustments to the farm scripts that prevent players from interacting with each other's farms and harvests.
Test the game using two farm models and create a two-player test server in Roblox Studio.
Create a data store for each player using the data module you create.
Format your players' data so it can be saved to the data store in one table.
Save your player's data and the information contained in their farm plots.
Write a function to decode players' saved data ready to be loaded into the game.
Restore player-saved data to the game when they return.
Collect player harvests for them if they leave the game without collecting them. Create a message to let them know their crops were saved when they returned to the game.
Display a message to returning players telling them their harvests were collected, and resume growing any crops planted when they left the game.
Make adjustments to the user input script that will create mobile buttons for players using touch-enabled devices, allowing them to play the game on phones and iPads.
Create a Dummy, add a plot to the workspace, get a copy of the rake and weld to the dummy. Use the animation editor to create the rake animation.
Create a module script and an animation controller script to handle all the animations you might use in your project.
Write the code to trigger the rake animation when the player is preparing the plot on the farm.
Create an animation of the player casting seeds from their bag onto the plot when planting on the farm.
Write the code that will trigger the animation when the player clicks on a seed button when planting on the farm.
Create an animation of the player collecting water from the well using the bucket and watering the plants from the bucket.
Write the code to trigger the animation when the player is collecting water from the well and watering the plants on the farm.
Create an animation of players jumping in the air when harvesting their crops.
Write the code to trigger the animation when the player is harvesting the crops on the farm.
Necessary code checking to ensure everything is working correctly. Add the second farm model, and test your project.
OpenCourser helps millions of learners each year. People visit us to learn workspace skills, ace their exams, and nurture their curiosity.
Our extensive catalog contains over 50,000 courses and twice as many books. Browse by search, by topic, or even by career interests. We'll match you to the right resources quickly.
Find this site helpful? Tell a friend about us.
We're supported by our community of learners. When you purchase or subscribe to courses and programs or purchase books, we may earn a commission from our partners.
Your purchases help us maintain our catalog and keep our servers humming without ads.
Thank you for supporting OpenCourser.