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

Recent Comments | Show All

Venbha

2019/1/26

Could you add this code for its movement MouseInfo pointer = Greenfoot.getMouseInfo(); if(pointer != null) { int mouseX = pointer.getX(); int mouseY = pointer.getY(); turnTowards(mouseX, mouseY); int button = pointer.getButton(); if(button == 1) { move(20); } }
Venbha

2019/1/26

nice!!