So I'm very new to godot, and moderately new to coding. Because of my past experience, I basically understand the system, but not enough that its easy for me. I want to make a top down rpg like game, similar to the legend of zelda (pixel art). Before I can even get close though, I need more experience with godot. One of the major obstacles I've found is sprites. I got my 2dKinematic node to move with the move_and_slide() method and the Vector2() method (I'm sure anyone with experience using godot will understand what I mean). I also got my node to inherit a child sprite.
TLDR I want to know how to change the sprite image of a sprite node in code based on an even, for example IF(BUTTON UP PRESSED): Sprite.texture.set_texture("Image for walking up.png") (Obviously not real code, and I know it would make more sense to give the sprite animations, but for now I want to figure out sprites)