Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started