Hello Can you Teach Me or Make an Open Source on How to Make Weapon Swaping? I am New to GDevelop and Not That Great With The Info I get I look Everywhere I Cant Find Help But Overall a Nice Game
Viewing post in A Very Consistent First Person Shooter Game comments
The weapon swap is pretty simple. Just try doing this:
Condition:
Num1 key is pressed
Or
Num2 key is pressed
Action:
Set scene variable *Weapon* = 1
Or
Set scene variable *Weapon* = 2
And then...
For your first weapon:
Condition:
Scene variable of *Weapon* = 1
Action:
Hide Gun2
Show Gun1
For the second weapon:
Condition:
Scene Variable of *Weapon* = 2
Action:
Hide Gun1
Show Gun2