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

2019/2/25

Refrence two get object commands

BlueSnake BlueSnake

2019/2/25

#
in trying to create a radius at an offset from the actor (name= Ship) but it says "noinstance of type variable <A> exist so that java.util.list<A> conforms to java.lang.Class<?>" and i cant figure out whats wrong. getWorld().removeObjects(getOneObjectAtOffset(0,0, getObjectsInRange(80, Enemy1.class)));
danpost danpost

2019/2/25

#
BlueSnake wrote...
in trying to create a radius at an offset from the actor (name= Ship) but it says "noinstance of type variable <A> exist so that java.util.list<A> conforms to java.lang.Class<?>" and i cant figure out whats wrong. getWorld().removeObjects(getOneObjectAtOffset(0,0, getObjectsInRange(80, Enemy1.class)));
Eliminate the use of the getOneObjectAtOffset method.
BlueSnake BlueSnake

2019/2/28

#
but is it possible to get the range at an offset from the actor
danpost danpost

2019/2/28

#
BlueSnake wrote...
but is it possible to get the range at an offset from the actor
You could move the actor by that offset, be it temporarily, to check that range about the location.
BlueSnake BlueSnake

2019/3/1

#
Ok, thank you that makes sense
You need to login to post a reply.