Java Help Understand Get Xpos Ypos Public Void Move Int Xpos Int Ypos Bodygetwidth 0 Heads Q43843277
JAVA: can you help me to understand how to get the xPos andyPos
public void move (int xPos, int yPos)
{
while (this.body.getWidth() > 0)
{
this.head.setXPos(this.head.getXPos() + xPos oryPos);
this.body.setXPos(this.body.getXPos() + xPos oryPos);
this.leg.setXPos(this.leg.getXPos() + xPos oryPos);
this.delay(20);
}
return;
}
Ineed basically to move the body of the marionette in the x andy-axis and also animate it
Expert Answer
Answer to JAVA: can you help me to understand how to get the xPos and yPos public void move (int xPos, int yPos) { while (this.bod…
OR