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

2013/1/30

Shooting with mouse?

Maddin Maddin

2013/1/30

#
Hello, i'm trying to make a little 2D shooter, but i'm stuck at the Problem, that there is no holdingMouse feature. So i tried this, didn't work so please help: private int on=0; if(Greenfoot.mousePressed(null)) { on=1; if(Greenfoot.mouseClicked(null)) { on=0; } else { on=1; } } else { on=0; } Note: i'm new at java programming :)
danpost danpost

2013/1/30

#
What do you mean by 'there is no holdingMouse feature'? Please explain what you are trying to do? What action are you trying to program with the mouse?
You need to login to post a reply.