Yes but how do I actually make it.
Do I spawn a bullet with a range limit?
Do I spawn an object in front of my character?
Sorry but I haven't done this before, what's the logic?
You said you want to do a melee attack,use different animation frames to do that.
Why do you need to spawn an object?
If you want to do that,You can use another instance variable.