<PImage Walking;
color c - color(0);
void setup();
background(c);
noStroke();
fill(c);
Walking = loadImage('Walking-Animation.png");
void draw();
display();
image(Walking, pos.x, pos.y);
// This is where I’m stuck. I thought I could get 1/6th of the image’s width (because there’s 6 images on the sheet), but it does nothing.
Walking.get(0, 0, Walking.width/6, Walking.height);
void display ();
background(c);
move();
The get() function is returning a PImage. You should assign that image to a PImage variable.
You should also do this in setup(), because you only want to “cut” the image once, since that image does not change.
Your code also has… other problems. If you are trying to use setup() and draw() functions, you need curley braces around the instructions in their bodies: