Ok so I am making a scenario where a floating boss constantly follows you.
In the human-controlled class I have:
and in the boss class I have:
The error I keep getting says non-static variable cannot be reference from a static context
Can anyone tell me what my problem is?
1 2 | public int grumpyX = getX(); public int grumpyY = getY(); |
1 | turnTowards(GrumpyFace.grumpyX, GrumpyFace.grumpyY); |