RPG Hack Slash Game: Characters Stats Setup
This today and this month I am working on the character stats setup. In RPG games this is the most important set before i ever think of producing the game. It is vital that there is a system in place for the player to select a character and level up their stats. In the screenshot a character selection screen along with the initial stats is created.
Figure 1: Create Character Selection + stats
Figure 2: Character Base Stats
Figure 3: Character Exp / Level System
Figure 4: Character Attribute Names and Exp Modifier
Figure 5: Character Skills
Figure 6: Character Generator(Loads the model)
Figure 7: Character Save data( Stores and saves the Character and Username)
RPG Hack Slash Game: Early Progress the Player Controls and Enemy Movement
The next step is create a couple of scripts that controls the players and enemies movements. Also the attack script is implemented into both the players and enemy game object.
To do this firstly a third person controller and script is attached to the Player game object. This will allow the object (which is the player game object in this case) to be control using the keyboard controls. Below is an example of the script.
Figure 1: Third person Controller Script
The next step is to implement a way for the enemy to move towards the player. This is achieved by using a function that allows the enemy to see the player and then rotate and move towards the player. When the player moves away the enemy will continue to follow them. Below is the script i used for the enemy chase.
Figure 2: Enemy Attack Script: Chasing the Player
Once the script is created the next step is to implement the player attack script. This will allow the player to able to attack the enemy. Down the line it will be developed into a more complex structure such as selecting which enemies to attack and maybe potential interacting with objects. Below is the script.
Figure 3: Player Attack Script.