so i recently started working a top down shooter but i’ve come across a problem and i’m just wondering if there is an easy solution to the problem or if what i think i might have to do i will have to do.so right now i have the player shooting but i want to have at least 3 guns in the game but i’m sure how i am supposed to go about it. i basically did everything in this tutorial (How To Make A Game - Step By Step Tutorial [1])
besides the attach the gun to the center of the player character because i’m designing the game like actually top down you only see the top of the heads and shoulders you know so that one tip doesn’t work for me.
anyways my question is how would i go about doing this because right now the player turns in 360 or follows the mouse but i’m just wondering do i have to make an idle and running animation for each gun or is there a way for me to make each gun an object and like stick to the side of the player. or no i do have to make slightly different animations depending on which gun i switch too.
From first part of your question i understood you can’t use player center as point for your gun
So
A - i would go with arms and gun be one object and now you use center of head to attach it
Or
B - you are looking for action put object around another object (or around position)
Then i realized title of your post is about multiple guns
I would just go with multiple animations for one object
But THEN i read about idle and move animations
Well still doable with per gun animation on one object
But next you mention position so i guess you mean gun when moving and when idle should be in different position
For that i would either go with different points on head
Or different animations which you i guess you want to avoid
But best of two worlds would be to combine both
You totally could get away with using put object around another object action when moving
And just slapping your gun when idle to some position between player and gun and maybe setting it to angle between player and gun
Hard to tell what would be best for you cause just telling you see head does not tell much
so i guess the way i can put in a better way. is the tutorial i watch the positioning of the player is like binding of issac. and i’m trying to make a game like hotline miami sort of.