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

2024/5/2

get an actor's start location without hard coding

NewUser567 NewUser567

2024/5/2

#
If my actor touches a rock, it needs to go back to its starting coordinate and starting rotation. How can i get this without putting in the actual numbers?
danpost danpost

2024/5/3

#
NewUser567 wrote...
If my actor touches a rock, it needs to go back to its starting coordinate and starting rotation. How can i get this without putting in the actual numbers?
You could save the initial location coordinates and rotation in fields when the actor is added into the world. Then (re)set location and rotation to those values when needed (hits rock).
You need to login to post a reply.