top-down shoooter

this is my first time making a top-down shooter how do I make a movement system with WSAD to move and using the mouse to turn and shoot. I also need to know how to make an animation play while moving, jump and how to make a camera move smoothly. I made a rigid body right now and applied it to a capsule. that’s it. I don’t know what I should do with the camera.

What have you tried? What’s not working? We’re here to help with your problems, but we’re definitely not here to make your game for you.

1 Like

Before I continue I have to say that I mainly need to know if there is a place that I can look to find a function that works for what I am trying to do because I only know what a function and a class are and the int class and the public keyword

I already thought about unity’s documents but you already need to know what the function is called but I need to find a function not just see what it does

I’ve tried implementing the transform.position function for the camera but I can’t seem to make it work

This is the first time I am making a movement script with WSAD I only made a script with perpetual motion

I know it has something to do with the transform function

Lastly, I need to know how to make the camera detect the distance from the player and if to start following it

Sorry if it sounded like I needed you to make the game for me

I forgot to say that

I don’t know how to say this but I’ll try I need help in a way that I can learn to do it by myself if you understand

This is a little “thin” to make games. I suggest you learn the basics of programming first (preferably outside of Unity). Free C# yellow book by Rob Miles is a great resource to start that. Then you should do some Unity tutorials to get a grasp of the workflows of the Editor. Next you could try to look at available character controllers and get “inspiration” of how others do it. THEN you start your own character controller.

There is little sense in intentionally omitting necessary steps (learning programming) and then ask others (us) to fill in the gaps. If you can’t programm properly you can’t make a game (visual coding aside), simple as that. So learn that first. If you can do it many things will come naturally to you, for example understanding what other peoples code does etc.

the thing is I already did a few unity programming courses I am struggling to learn

(I have been trying to learn c# for 5 months now)

This is not really encouraging to help you. I guess most people here are “selft taught”. This means one “works” through available resources and learns bit by bit by experimenting. If this is not your type of learning and you need a “teacher” there are some Unity courses. I read “Udemy” alot but never used such stuff myself. There are also some books about Unity (those I know are outdated but may still be usefull). My point is, most people consider forums a place of discussion. It is not to teach “noobs” from zero to hundred. A certain own initiative is expected and should be shown. Just posting an empty script is definitely not what I mean by that. You don’t even ask a specific question.
This does not mean you won’t find someone who has enough time and goodwill to do it. I just consider it somewhat unlikely.
Another point is, there are so many great resources out there to learn. If you cannot make use of them it is also unlikely that you can use what someone posts here to help you.
If this stuff is too hard, there is no shame in admitting it. Maybe this is just the wrong hobby for you? There are many skills required for a game. Maybe you are more the art person?

I like the modelling and animating part but I don’t know any programmers and I don’t want to pay someone to program plus every tutorial I can find doesn’t work so I did the only thing I thought I could do which is program myself

I find that hard to believe. Take a deep breath and go back through some of the earliest tutorials in the Unity Learn section… you’ll find that a) they actually do work, but that b) you actually have to DO them correctly.

This means 100% of spelling, capitalization, punctuation, spacing, setup in scene, prefabs, etc., all 100% of that has to be PERFECT. This is Software Engineering, not sending text messages.

2 Likes

recently they changed something in the way it reads or something like that because things that were valid aren’t anymore

I have many files like this

I can send screenshots or the file itself as proof

I did these tutorials in the learn section:
Creator Kit: Beginner Code
Create With Code

I tried way more with youtube btu they were old versions so they failed

When you know how to program properly you can “work around” faults in tutorials (for example when they are old and API has changed). Programming alone is hard. Developing games is even harder. There IS alot to learn. This step cannot be done by someone else. If you want to develop games you have to learn it. If it is worth it to you is something you decide. But when I see your initial post I see lots wrong expectations leading to frustration.
Thus my advise to learn programming outside of Unity. Work through the ebook as often as you need until you understand the main concepts. It does not get easier when you want to learn programming AND Unity in a single step. Split them up and make them as small as you can comprehend.

3 Likes

Personally, I think you’ll learn more just lurking on the forums than you will from following any tutorial. You’ll learn more from trying (and failing) to create something simple of your own, than transcribing some tutorial code.

3 Likes