Need Help getting started with RPG
So I'm starting a medieval RPG with a friend. We've been working on it for a few months and only have the plot and story and some assets/props. We really aren't far at all. We have no idea how we are going to do shops, get sounds and music, optimize the game to run well, have a looting system with chests and enemies, have different weapons and Armor to switch out. We need help with all those things so if anyone can help that'd be great
Answer by lloladin · Dec 24, 2015 at 04:43 PM
thats alot of things you are asking about maybe you should take one thing at a time but i can give you a few links to get you started
Inventory
https://www.youtube.com/watch?v=ZW6RCKVnqT4 this is a pretty long tutorial on how to make a custom invetory system but it works and taught me the basic
now for enemies and basic of rpg my farvorite unity tutorial youtuber have some tutorials
https://www.youtube.com/user/gamesplusjames
getting sounds and music well unless you want to make it yourself which i myself finds pretty difficult you would have to find it around the net if you are planning on ever making money on the game you should read copyrights etc on things that you implement into your game also if you want to pay for music and/or sounds here are some free sites http://gamedev.stackexchange.com/questions/14/where-can-i-find-free-music-for-my-game
equipment and armor and shops i personaly figured it out after watching the tutorial on invetory system
optimizing thats a pretty big subject and you can spend hours reading up on it but a few things you should watch out for especially if you are making the game for Phones, tables
Update function
unnecessary code running the background
creating and deleting alot of objects is bad recycling is better
importing grahpics (Mostly 3d Objects)
their are probly more these are just a few that i personally have had problems with
hope this helps you to get started happy holidays :D
Thank you alot for the feedback and fast response! That'll help a lot, I'm new to the rpg coding stuff. $$anonymous$$aybe another question would be, do you know how to have swappable Armor and weapons? Like have them visually change on the character, or is that in the inventory video? Happy holidays to you too!
i made it once not sure if i can explain though but i can give it a shot :D
i made some GameObjects on my player called thing slike Helmet, chest, weapon1, weapon2 etc then i made a script with with Variables called helemtSlot, chestSlot , weaponSlot1 etc like this
Public GameObject helmetSlot
Public GameObject chestSlot
Public GameObject weaponSlot1
the i add the script to my player and and drag the slots onto the variables in the editor so the variable helmetSlot is = Object helmetSlot and variable chestSlot is = object chestSlot etc
then i make some ugly graphics lol and make sure they fit my player so lets say youre player is 10x16 px tall and hes head is 4x4 px theni would make sure that my graphic is 4x4 px so that then i instantiate it on my slot it fits perfectly i think you get what im trying to say .-.
so now you have some slots to instantiate your weapon and armor in now we need to make the script that tells if the items are equiped now to make it visually appealing you would need to understand how to make an inventory system first so we will just do with if gameObject is = null or gameObject is != null something like this
public GameObject equipedHelmet
public GameObject equipedChest
// etc
if (equiped helmet != null)
{
transform pos = gameObject.GetComponet<otherscript we made>().helmetSlot.transform;
GameObject helmet = (Instantiate(equipedHelmet, new Vector2(pos.x, pos.y), Quaternion.identity));
helmet .transform.setParrent(gameObject.GetComponet<otherscript we made>().helmetSlot.transform);
}
// if the no item is equiped and the slot
else if (equipedHelemt == null && gameObject.GetComponet<otherscript we made>().transform.GetChild(0) != null)
{
destroy (equipedHelmet);
}
hope this makes sense else i gues i have failed lol
Thanks man I'll try this out once I get done with modelling!
Your answer
Follow this Question
Related Questions
Having problems with making a Navmesh Agent stop and play an attack animation 0 Answers
How to create saving slots that can be loaded? 2 Answers
Animation of PlayerCharacter stucks in odd poses after game restarts 0 Answers
Animation delay from walk to idle 1 Answer
Animation Control by Float 2 Answers