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

2017/11/25

How to get an object to turn towards another object?

greenmans greenmans

2017/11/25

#
I'm trying to get an Actor to turn towards another Actor. I've read all the other discussions on this question, but whenever I try them (https://www.greenfoot.org/topics/1455) I get an indexOutOfBoundsException. How do I do this properly?
Super_Hippo Super_Hippo

2017/11/25

#
Make sure that the object you want to turn to, is in the world. Or the list is empty and you can't get the first object from an empty list.
You need to login to post a reply.