This site requires JavaScript, please enable it in your browser!
Greenfoot back
Youssef
Youssef wrote ...

2014/5/22

getOneintersectingObject footballgame

Youssef Youssef

2014/5/22

#
I'm working on making a football game, but it does not manage to get the ball With the player. system indicates failure in coordination X. public void terugKaats() { Actor actor = getOneIntersectingObject (Tegenstander1.class); if (actor != null) { actor.setLocation(actor.getX() + (x - getX()), actor.getY() + (y - getY())); }
danpost danpost

2014/5/22

#
How are 'x' and 'y' declared? and, What is the exact (copy/paste) error message you are getting?
You need to login to post a reply.