Roblox Studio Adventure Game (Day 6-7)

 It took me the whole week, but I've finally finished the basic version of the adventure/simulator game. This blog will show what I created in the second half of this week. 

  

Day 3


    The first thing that I did on day 3 was create a script that detects when a player touches a crystal with the pickaxe. 



The code checks if the player has space to grab the crystal. If the player does, then it gives the player 1 crystal.

I then added more to this code to make the crystal disappear for a certain amount of time. This is to make it so players can't harvest the same crystal spot, forcing them to find other locations. 




    I also added some unique code that wasn't in the script. I didn't like how the crystal would just disappear without any sort of effect, so I made some new code so the crystal slowly disappears. 



    Next in the tutorial was creating a platform where players sell their crystals for gold. 


The selling platform

    Then I started writing code for the sellPart. When players step on the platform, they are giving gold in exchange for their crystals.




Day 4

    On day 4, I continued from where I left off and finished the selling crystals script.



    

I sold some crystals I harvested and the code gave me 100 gold for each. 

    The last thing I had to do for the game was create a shop where players can buy upgrades. The upgrade I chose for players to buy was a bag upgrade. 



    Then I created a script where players could click on the block to buy more spaces for their player. This only works if the player has enough gold to buy the upgrade. If they don't, the game doesn't award the player with anything. 




Upgrading the spaces 


    And with that, I had created a basic simulator/adventure game on roblox!




    Next week, I plan to create my own type of game on Roblox. This game will most likely be an obstacle course of some kind. 




Comments

Popular posts from this blog

Roblox Studio tutorial: Creating a tycoon (Day 8-9)

Day (8-9) The start of something new

Day 4 of the independent project (Resurgence)