Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions