Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Help! I want to create building system like in Rust but I don't know.

Discussion in 'Scripting' started by UpOGP, Mar 3, 2014.

  1. UpOGP

    UpOGP

    Joined:
    Jan 16, 2014
    Posts:
    2
  2. glacius3000

    glacius3000

    Joined:
    Oct 5, 2012
    Posts:
    69
    This probably took the creators well over a year to make and get right. The creators also probably have years of experience in making games, and using and creating their tools. Start small, keep it simple, gain experience, and make more games and you'll get there too.
     
    Lethn likes this.
  3. makeshiftwings

    makeshiftwings

    Joined:
    May 28, 2011
    Posts:
    3,350
    Code (csharp):
    1. RustClone rustClone = new RustClone();
    That should work.
     
    StyxOo, Boz0r, EdGunther and 14 others like this.
  4. AlwaysBeCoding247

    AlwaysBeCoding247

    Joined:
    Jan 27, 2014
    Posts:
    41
    RustClone rustClone = new RustClone();

    lol that post actually made me chuckle a bit
     
  5. mafiadude1

    mafiadude1

    Joined:
    Jun 28, 2012
    Posts:
    59
    Same.
     
  6. LeftyRighty

    LeftyRighty

    Joined:
    Nov 2, 2012
    Posts:
    5,148
    maybe starting with the basics of instantiating different prefabs on a grid... build up knowledge from there. Should be able to find tutorials on C&C building placement mechanics for unity games. Once you can place objects into the scene during gametime, incorporate a fps point of view... etc.

    Basically pick a single part of what you see, work out how to achieve that, pike the next bit, work out that bit...
     
  7. Munchy2007

    Munchy2007

    Joined:
    Jun 16, 2013
    Posts:
    1,731
    Nope! It doesn't work.

    Code (csharp):
    1.  
    2.     // Use this for initialization
    3.     void Start () {
    4.         RustClone rustClone = new RustClone();
    5.     }
    6.  
    I get error CS0246: The type or namespace name `RustClone' could not be found. Are you missing a using directive or an assembly reference?

    Do you think it would help if I upgrade to Unity Pro?
     
  8. WereEagleCZ

    WereEagleCZ

    Joined:
    Oct 3, 2013
    Posts:
    1
    Ehm ... ummm ... I can say only that : You are wery young and dont understant to that good joke ... ;D... But becose im not bad man I help you : Try to use ,,strategy game buildings building" you can found some tutorials at you tube or try to use that cool forum ,becose there is too mutch old questions about that ... With that you get building like The Forest building ... :) (Or DayZ Epoch building)
     
    Pedro Lealdino Filho likes this.
  9. Sharp-Development

    Sharp-Development

    Joined:
    Nov 14, 2013
    Posts:
    353
    I guess he was just sarcastic...
     
  10. Munchy2007

    Munchy2007

    Joined:
    Jun 16, 2013
    Posts:
    1,731
    I seems that maybe I should have used a 'tongue in cheek' smiley to avoid the subsequent misunderstanding of the tone of my post :)


    I was aiming for humour rather than sarcasm :)
     
    Codinablack likes this.
  11. A.Killingbeck

    A.Killingbeck

    Joined:
    Feb 21, 2014
    Posts:
    483
    Humasm
     
    Skyfall106 likes this.
  12. Erisat

    Erisat

    Joined:
    Jan 31, 2013
    Posts:
    88
    definitely check this out : http://www.gamertogamedeveloper.com/ its a tutorial series thats walks you through step by step with very detailed explanations. they end up with a multiplayer FPS style game, where players can kill each other and also place blocks. It's obviously not as nice as what theyre doing in that rust video, but it may be a good place to start
     
  13. bobor20001

    bobor20001

    Joined:
    Nov 23, 2013
    Posts:
    3
    Good joke :D
     
  14. Jamcount

    Jamcount

    Joined:
    Apr 20, 2014
    Posts:
    44
    Years? I think hours, it should be a very easy thing to do.
     
  15. JamesL98

    JamesL98

    Joined:
    Oct 9, 2014
    Posts:
    50
    #illuminati
     
  16. MD_Reptile

    MD_Reptile

    Joined:
    Jan 19, 2012
    Posts:
    2,663
    Isn't rust made by the creator(s) from gmod? They(he) know(s) their(his) stuff, I'd say a system like that one is gonna be... Advanced... So maybe set the bar a little lower, like "instantiate a prefab at a location" or "read through entire learn section several times" would be what I would research first.
     
  17. jonnyetiz

    jonnyetiz

    Joined:
    Oct 4, 2014
    Posts:
    3
    I know this topic is pretty old but I have a good solution for you. Just get a base inventory system that allows droppable items on the ground, and add new inventory items being the building components, and make a script that places prefabs, being the blocks/objects. Im trying to think up a way to have it snap, but I will probably figure it out. If you need help with the entire code, I have to say Unity/ Game Development is not for you :)
     
  18. Rugbug_Redfern

    Rugbug_Redfern

    Joined:
    Jun 2, 2017
    Posts:
    20
    I know this thread is old, but needing help with your code is one of the fundamental steps of game development. You can never learn without help from someone else. Just because they need help doesn't mean they should quit game development, it means they should continue to try to learn to code. Nobody gets coding right on their first try.
     
    TunahanYilmaz likes this.
  19. Plasmatical

    Plasmatical

    Joined:
    Feb 21, 2018
    Posts:
    2
    it actually takes like 5 days to make a rust building system lol