This site requires JavaScript, please enable it in your browser!
Greenfoot
Username
Password
Remember Me?
Sign Up, Lost Password
Activity
About
Documentation
Download
Discuss
Scenarios
GrimCreeper312
wrote ...
2013/5/6
Player Detection
GrimCreeper312
2013/5/6
#
i have an enemy class that is to swings a sword when the player gets into range how would i do this
Gevater_Tod4711
2013/5/6
#
You can use the getObjectsInRange method (see the
Greenfoot API
) to check whether your actor is in a certain range of your enemy.
You need to login to post a reply.
X