Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 30 Oct 2012
Offline Last Active Feb 18 2016 03:35 PM

Topics I've Started

Why do most RPG games uses range values for attack/defence?

04 January 2016 - 11:44 PM



I noticed that almost all RPG games don't give a flat value for some stats such as attack. What is the reason behind that?


here are some examples:



how to serialize so many variables?

03 July 2015 - 11:09 PM



currently i am learning C# serialization to save and load Player Data.


following this tutorial:



i know how to save and load variables.


but lets say i have such class:

public class PlayerData {

	public static  int PlayerLevel;
	public static  string PlayerName;
	public static  string PlayerClass;
	public static  int PlayerHealth;
	public static  int PlayerExp;
	public static  int PlayerAttack;
        public static  int PlayerStrength;
	public static  int PlayerAgility;
	public static  int PlayerAttack;
        public static  List<Item> Inventory = new List<Item>;
        public static  int PlayerMana;

        // A lot of variables ....


so my questions:


1- how can i save all of them together instead of one by one

2- is saving all of them when only one of them is changed slows the game?

How can i save player data, and how to prevent cheating?

30 June 2015 - 08:48 PM



i am using Unity and C# for my projects.


till now i am using PlayerPrefs to save and load Player Data, but any user can edit and change it, so i want to know a better method to save and load data.


(i found this plugin https://www.assetstore.unity3d.com/en/#!/content/18920 which encrypt the PlayerPrefs, but i dont know should i use it or ignore PlayerPrefs completely)


Also if i saved a player data, how can i prevent the player from cheating and hacking?


i read about XML Serialization and i am learning it right now, how safe is it and should i continue learning about it?

how to program A LOT of skills/spells?

27 June 2015 - 10:55 PM



How do you program a spells/skills system for a game with one character but a lot of spells/skills (maybe 100+)


currently i am using this method: (i am using Unity2D with C# btw)

 void PlayerCharacter()
	 if(SkillNumber1Unlocked)// when he presses the first skill button and it Unlocked

	 if(SkillNumber2Unlocked)// when he presses the second skill button and it Unlocked


void SkillNumber1()
void SkillNumber2()

Start with Aspect ratio or Resolution?

17 June 2015 - 02:11 PM



i am going to develop a new game for PC using Unity2D. 


but i am confused, should i start designing and developing based on an aspect ratio or a resolution. also is there any difference if i started with any of them?


Aspect ratio:  16:9


Resolution: 1920x1080


 since when i use Unity and put aspect ratio 16:9 i can see the full screen of the game, but when i put it 1920x1080 resolution i dont see all the screen and it says different resolutions.