This site uses cookies! Learn More

This site uses cookies! uses cookies to improve user experience.

By continuing to use this site, you agree to allow us to store cookies on your computer.


  • Content count

  • Joined

  • Last visited

  • Days Won


morten2808 last won the day on June 10 2015

morten2808 had the most liked content!

Community Reputation

54 Excellent

About morten2808

  • Rank
  • Birthday 08/28/1996

Profile Information

  • Gender
    Not Telling
  • Location:
  • Interests
    Learning to Code, Singing and making music, Modeling

Recent Profile Visitors

923 profile views
  1. DAMN!! Mate it looks awesome! Pretty good low poly model i must say
  2. I really hope it isn`t too late yet xD Btw thanks for making this giveaway!
  3. Thanks mate
  4. No problem Glad i could help!
  5. NOTE : I could have done much more with this system but i choose not to as i can see so many people on here request/ask for scripts, so this is my way of helping them by giving them a script that have the basics and then they can learn by editing in it! ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- So this is maybe something really easy i know but i also know that many people find binary really hard to learn so i just made a little level system with binary saving + loading of the players data. so here it is! Please reply here if you are going to try it out as i love to hear that people use the scripts i make How To: 1) Put the script called "LevelSystem" on an empty gameObejct. 2) Now fill in where you want it to save(Like this "C:/SaveGames"). 3) Now fill in what you want the file to be called (Like this "Simple.sav"). 4) Expand the array called "Levels" and start adding in some levels. 5) Expand the array called "P Data" and set the variable called "Level" to 1. 6) DONE! Have fun! -------------------------------------------------------------------------------------- How To Save/Load: 1) To save click the key on your keyboard called "S". 2) To load click the key on your keyboard called "L". NOTE: The variable called "Exp To Give" is just a testing variable so if you want to test the level system you just fill in how much exp you want to give the player each time you click on "G". LevelSystem.cs using System.Collections; using System.Collections.Generic; using System.IO; using System.Runtime.Serialization.Formatters.Binary; using UnityEngine; public class LevelSystem : MonoBehaviour { public int expToGive; [Header("LevelSystem - Levels")] public List<LevelClass> levels = new List<LevelClass>(); [Space(1)] [Header("LevelSystem - Player Data")] public PlayerData pData; [Space(1)] public string pathForSaving = "C:/Skype"; //This path is just where you want the Binary file to be saved at. public string fileName = "/Nigga.sav"; //File Name. // Use this for initialization void Start () { //This goes though every level in the "Levels" list. for (int i = 0; i < levels.Count; i++) { if (pData.level == levels[i].level) { pData.maxExp = levels[i].expTolevel; break; } } } // Update is called once per frame void Update () { //Click "S" to save your data! if (Input.GetKeyDown(KeyCode.S)) { SaveUsingBinary(); } //Click "L" to load your data! if (Input.GetKeyDown(KeyCode.L)) { LoadUsingBinary(); } //Click "G" to load your data! if (Input.GetKeyDown(KeyCode.G)) { GiveExp(expToGive); } } //Down below are all the functions i have made! //I am not going to commend any of the as i want you to learn from this script! //Read them though if you really want to learn something! public void GiveExp(int amount) { pData.currentExp += amount; if(pData.currentExp >= pData.maxExp) { LevelUp(); } SaveUsingBinary(); } public void SaveUsingBinary() { FileStream fs = new FileStream(pathForSaving + fileName, FileMode.Create); BinaryFormatter bf = new BinaryFormatter(); bf.Serialize(fs, pData); fs.Close(); } public void LoadUsingBinary() { FileStream fs = new FileStream(pathForSaving + fileName, FileMode.Open); BinaryFormatter bf = new BinaryFormatter(); pData = bf.Deserialize(fs) as PlayerData; fs.Close(); for(int i = 0; i < levels.Count; i++) { if(pData.level == levels[i].level) { pData.maxExp = levels[i].expTolevel; break; } } } private void LevelUp() { float tempExp = pData.currentExp -= pData.maxExp; pData.currentExp = tempExp; pData.level++; for (int i = 0; i < levels.Count; i++) { if (pData.level == levels[i].level) { pData.maxExp = levels[i].expTolevel; break; } } SaveUsingBinary(); Debug.Log(tempExp); } } LevelClass.cs using System.Collections; using System.Collections.Generic; using UnityEngine; [System.Serializable] public class LevelClass { public string levelName; public int level; public float expTolevel; } PlayerData.cs // This is where everything about the player goes! using System.Collections; using System.Collections.Generic; using UnityEngine; [System.Serializable] public class PlayerData { [Header("PlayerData - Progression")] public float currentExp; public float maxExp; public int level; } If you want to download it insted then just download the attached rar file Level System.rar
  6. Nice system mate! I really like that you can see what you are going to buy in 3D insted of just looking at a picture
  7. Hey mate add me on skype at morten28081996 I can do the work for you. EDIT : Done! You can just add me on skype or pm me to get it It includes. Inventory + items can stack!. Crafting + The resoruce stuff you asked for. ItemDatabase.
  8. Hey hit me up i am gonna do the Danish one
  9. It kinda sounds like steam are just trying the stop indie devs make games
  10. Maybe not the best idea to ask on a forum where people develop games....
  11. Have you tried looking on google ? Maybe there is a tut about it or something else that can help you on it
  12. Looks good i would maybe play it sometime I rate it 8/10. (May change when i have played it!)
  13. Happy birthday to them both!
  14. Sounds good bro cant wait to see you post some previews of it! btw i updated my game so if you want to try it then the new build is up
  15. It looks really nice and simple what is the game gonna be about ?