- Home /
How to switch and unlock game characters in real time
So i want to make an RPG where to core mechanic is the fact that when you kill an enemy, you can "Unlock" him. This means that i will have multiple characters made, and when the player kills an enemy, he gets the ability to switch his character and get the abilites etc from the enemy. Basically like most MMORPG's let you use skills with 1-9 buttons, i want my game to let you switch characters (different scripts, sprites etc) in real time. What i thought of is destroying the current character and then spawning the new one in its position depending on which keys the player pressed, but i cant seem to find a way to only let that happen after the player has killed an enemy of this kind, and didnt even manage to write a clean code for the basic idea.
Thanks in advance
Your answer
Follow this Question
Related Questions
switch player and npc follow player 0 Answers
Player switch on ui button 0 Answers
Understanding Prefabs + Player Spawn Points 2 Answers
Using a Pre Rendered character as the player 0 Answers
Instantiate a prefab and switch character control to it 0 Answers