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

2020/7/9

How to make something appear when mouse is clicked?

FadedGray FadedGray

2020/7/9

#
How to make something appear when mouse is clicked? I want to make ammo appear out of my spaceship when I click. Can someone please tell me the code for that?
FadedGray FadedGray

2020/7/9

#
And also how do you make villian appear ??
danpost danpost

2020/7/9

#
FadedGray wrote...
How to make something appear when mouse is clicked? I want to make ammo appear out of my spaceship when I click. Can someone please tell me the code for that?
Are you trying to shoot toward where the mouse was clicked at? What have you tried (show attempted code)?
how do you make villian appear ??
Vague. When? Where? What have you tried (again)?
FadedGray FadedGray

2020/7/9

#
Hello! Thanks so much for replying but I got my question answered
FadedGray FadedGray

2020/7/9

#
I have another question though, how do you make a game stop once the player touches it?
danpost danpost

2020/7/9

#
FadedGray wrote...
I have another question though, how do you make a game stop once the player touches it?
Use the isTouching method in conjunction w/Greenfoot.stop. Btw, you cannot download a scenario whose code has not been made available. You will see a big green foot button with the words "Open in Greenfoot" at upper-right of scenario frame when available to download. Also, it will be tagged "with-source".
You need to login to post a reply.