Hey there.
I want to programm, that my first object "Kurzpompfe" (don't take care to the name) can hit the second object "Langpompfe", but only in a given radius. for example 20. how can i do that?
I tried to do it like this:
but this doesn't work.
i hope anyone can help me and you understand my problem.
Benni
P.s. I just started to programm java in school
distance = getX()-getX(Langpompfe.class);