Question: JAVA: can you help me to understand how to get the xPos and yPos public void move (int xPos, int yPos) { while (this.body.getWidth() >

JAVA: can you help me to understand how to get the xPos and yPos

public void move (int xPos, int yPos) { while (this.body.getWidth() > 0) { this.head.setXPos(this.head.getXPos() + xPos or yPos); this.body.setXPos(this.body.getXPos() + xPos or yPos); this.leg.setXPos(this.leg.getXPos() + xPos or yPos); this.delay(20); } return; }

I need basically to move the body of the marionette in the x and y-axis and also animate it

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!