March 6, 20196 yr So i have to click an object that has not interaction. it must be clicked on in order to jump over and gain exp. my function not working idk why not. if(obsticle != null){ getMouse().click((obsticle.getPosition().getX()),(obsticle.getPosition().getY()),true); }
March 6, 20196 yr sure that .interact() method doesnt work?- u can leave empty parenthesis also mouse.click should be false if youre trying to left click if nothing works just make entitydestination Edited March 6, 20196 yr by extatus
March 7, 20196 yr Author 6 hours ago, extatus said: sure that .interact() method doesnt work?- u can leave empty parenthesis also mouse.click should be false if youre trying to left click if nothing works just make entitydestination 6 hours ago, Dab in a Lab said: Like @extatus said. Try if (obsticle != null) { obsticle.interact(); } Thanks guys. I did not know if i left it blank it would just click the object.
Create an account or sign in to comment