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

2018/3/5

Getting Rid of actors

1
2
danpost danpost

2018/3/5

#
Heet_Patel wrote...
I have done it
Meaning you have fixed it -- or uploaded it?
Heet_Patel Heet_Patel

2018/3/6

#
Uploaded it
danpost danpost

2018/3/6

#
Add the 'Greenfoot.stop();' at the end of the last 'if' block in the 'Donald_Trump' class as well.
Heet_Patel Heet_Patel

2018/3/6

#
ok thanks
Heet_Patel Heet_Patel

2018/3/6

#
It is still not working. Little greenfoot
Heet_Patel Heet_Patel

2018/3/6

#
I added Greenfoot.stop();
Heet_Patel Heet_Patel

2018/3/6

#
and it still doesn't work
danpost danpost

2018/3/6

#
You have no images in your 'images' folder of the project. You have neither set any images to be the default for objects of the classes nor created and set any images to any of your objects. So, the default 'No image' little greenfoot image is used (which is put in your 'images' folder automatically) for your actors and your world background remains a flat white.
Heet_Patel Heet_Patel

2018/3/6

#
I actually used writing. It will show up has GameOver because I wanted it to be gameover. It is unspecified. I have no images
danpost danpost

2018/3/6

#
danpost wrote...
You have no images in your 'images' folder of the project. You have neither set any images to be the default for objects of the classes nor created and set any images to any of your objects. So, the default 'No image' little greenfoot image is used (which is put in your 'images' folder automatically) for your actors and your world background remains a flat white.
Sorry, this was supposed to be for someone else (lol). So, the problem here is that the GameOver is showing as a greenfoot icon-- is that right?
danpost danpost

2018/3/6

#
I found the problem. Do the following in the GameOver class:
// change 
public void act()
// to
public GameOver()
The act method will not run if the scenario is stopped. The image must be given beforehand (when the object is created and, in this case, before being placed into the world).
You need to login to post a reply.
1
2