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

2013/10/28

Emoticon Project- Gruver- so hard!!!

1
2
3
4
5
ksksks ksksks

2013/10/28

#
Don't use my code Cody!!!
daksouku daksouku

2013/10/28

#
WHO IS CODY??
ksksks ksksks

2013/10/28

#
So, it holds the variable (emoticon) ?
ksksks ksksks

2013/10/28

#
S**t, wrong name!!; never mind dweeb!
daksouku daksouku

2013/10/28

#
y didnt u spell it out
ksksks ksksks

2013/10/28

#
'Cause I feel dirty cussing online(or anywhere).
ksksks ksksks

2013/10/28

#
:l-
ksksks ksksks

2013/10/28

#
You should use Cody; it's cuter
ksksks ksksks

2013/10/28

#
We lost danpost!!!
ksksks ksksks

2013/10/28

#
@danpost they weren't working, plus that is just partial code
ksksks ksksks

2013/10/28

#
Sorry, the discussion degenerated.
ksksks ksksks

2013/10/28

#
   
 public HomeworkWorld()
    {   

        // Create a new world with 400x100 cells with a cell size of 1x1 pixels.
        super(400, 100, 1); 

        for(int i = 0; i<6; i++)
        {
            
            
                Emoticon emoticon = new Emoticon();
                addObject(emoticon,10*(i+60),50);
            }
        
    }
}
This finally works!!!!!!!!!
Kartoffelbrot Kartoffelbrot

2013/10/28

#
Maybe I can replace danpost. I am not a as well programmer with such a knowledge, but it should be well enough. So what's the problem now? Do you have an emoticon class or do you need help now to create it?
ksksks ksksks

2013/10/30

#
Thanks! I am having a problem with automatic creation (setting up the world) and I can't use the save the world function.
ksksks ksksks

2013/10/30

#
public class HomeworkWorld extends World
{
    private String[] image = {"smiley1", "smiley2","smiley3","smiley4","smiley5"};;
    private String[] soundfile = {"hello","happy","crying","ohno","raspberry"};
    

    /**
     * Constructor for objects of class HomeworkWorld.
     * 
     */
    public HomeworkWorld()
    {   

        // Create a new world with 400x100 cells with a cell size of 1x1 pixels.
        super(400, 100, 1); 

        for(int i = 0; i<5; i++)
        {
            
            
                Emoticon emoticon = new Emoticon();
                addObject(emoticon,10*(i+60),50);
            }
        
    }
}
This is supposed to make 5 different images with 5 different sounds, but it makes a huge cluster of smiles, all the same image!
There are more replies on the next page.
1
2
3
4
5