Like **How to figure out code for game mechanics as a beginner?
for example, I want to make the character move and shoot, what should I do?
if I want to make the character can loot and upgrade.**
for example, I want to make the character move and shoot, what should I do?
if I want to make the character can loot and upgrade.**
Break the mechanic down piece by piece, you must explain every intricacy.
Like: What is movement? Going from one position to another over time, a change in position, so the code must change position every frame in _process. How does the movement change? If by the player’s demand it must be from one of the many Input methods.
Looting and Upgrade are going to be very complicated, inventory systems in general are hard to create and work with; if you are starting out try to only hold one item at a time.