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

2020/1/10

How do i change my background with a button

1
2
Yuuki Yuuki

2020/1/24

#
What does that mean though?
danpost danpost

2020/1/24

#
danpost wrote...
Keep a reference field to the original actor in your world class so you can get its location easily when needed.
Yuuki wrote...
What does that mean though?
Add a field to your World subclass to retain the actor:
private Actor originalActor;
Assign the actor to the field so later you can get its location:
int originalActorX = originalActor.getX();
// etc.
You need to login to post a reply.
1
2