Script for individual arm movement with gamepad sticks? Help?

Godot Version

4.3

Hi,

First of all, I’m sorry if this is a dumb question or if it has been asked before. I started my first project ever 2 days ago, and I’m afraid I need some help.

I’m trying to make a 2D game where you move your characters arms individually with the sticks on a gamepad.
I created a basic elongated rectangle as a torso.
I gave it a collision box.
I made 2 ‘arms’ the exact same way, used joints to attach them to the torso part.
Everything went smooth, I tested it, the arms hang, as they should.
But this is where it gets really difficult, for me, at least, because I don’t know how to code at all (yet).
I added a script and tried looking online to find snippets of code or something that could help, but I’m kinda lost.

Could anyone please help me out a bit? I got as far as setting up the gamepad inputs and I added a script, but I don’t know what to put in it :sweat_smile:

I know it sounds stupid that I would even attempt this with 0 experience or know-how, but I figured I should at least try once before giving up on making my own games entirely, as it has been a dream of mine for many years now.
I was hoping maybe I could acquire the necessary knowledge along the way, but I might have been wrong about that too.

Anyway, thank you very much in advance!

I highly recommend getting some basic coding knowledge if as you say you have none at all.

There is a very approachable video by brakeys. I recommend having a look at that or similar, before coming back to ask specific questions like this.

Thank you!
I was also looking at this GDScript Tutorials
Could you maybe kindly direct me to the section that’s relevant to what I’m trying to accomplish? If there is one on there.

I don’t intend for this comment to come across as rude, but there are no shortcuts to success. If you’re asking if there’s a ready-made solution to the specific problem you’re facing, the answer is ‘probably not.’

A good grasp of the fundamentals will help you out better than any specific how-to would. Fundamentals like compositing with nodes, getting input, and using that input to ‘make things happen on the screen.’

Have you trued the Dodge the Creeps introduction project yet? The title might not suggest that it will be useful for your project, but it is. While it doesn’t tell you how to make the game you’re envisioning, it does cover ~90% of everything you need.