Depending on the game type, I would avoid killing of the main character.
If it's an ARPG where you control only one character killing them off will probably piss off a lot of players. If it's a JRPG, and you have the ability to control multiple characters, killing off one won't have the same impact. Yes, people were ticked about a certain death in FF7, and it might have had less of an impact since I had it spoiled and NEVER used her in battle once I got my 4th character.
You still have to be careful about how you foreshadow it. You need to do so a little bit, but not have the game scream out "YOU WILL PERMANENTLY DIE IN GAME" to the player.
If it's an ARPG where you control only one character killing them off will probably piss off a lot of players. If it's a JRPG, and you have the ability to control multiple characters, killing off one won't have the same impact. Yes, people were ticked about a certain death in FF7, and it might have had less of an impact since I had it spoiled and NEVER used her in battle once I got my 4th character.
You still have to be careful about how you foreshadow it. You need to do so a little bit, but not have the game scream out "YOU WILL PERMANENTLY DIE IN GAME" to the player.