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

2017/2/10

problems

popasergiu99 popasergiu99

2017/2/10

#
how to draw in greenfoot?
danpost danpost

2017/2/10

#
popasergiu99 wrote...
how to draw in greenfoot?
(1) reference an image to draw on;
// ex. (get reference to world background image)
GreenfootImage bg = getBackground();
(2) set new drawing color for image;
// ex. (to prepare to draw in green)
bg.setColor(Color.GREEN);
(3) use a 'draw...' or 'fill...' method of the GreenfootImage class to modify the image
// ex. (fill a rectangle of size (100, 30) starting at (20, 20) in the image)
bg.fillRect(20, 20, 100, 30);
Repeat steps 2 and 3.
Super_Hippo Super_Hippo

2017/2/10

#
Create a GreenfootImage and use methods on it to draw. Available constructors and methods in the API
Nosson1459 Nosson1459

2017/2/10

#
Super_Hippo wrote...
Create a GreenfootImage and use methods on it to draw. Available constructors and methods in the API
You didn't do 'url=' just 'url' so the text is blue but there is no link like this. How is danpost's post first yet it's 23 minutes ago while Hippo's post is next and it says 22 minutes ago (before it was 22 and 21)?
Super_Hippo Super_Hippo

2017/2/10

#
Interesting that the text is still blue... Yeah, thank you for the correction :) The time inside the discussion is not always the same as the one showing outside the discussion. I think that the time outside is the time when it was last edited... well, in this case, 23 is older than 22, isn't it? I probably don't get it right now.
Nosson1459 Nosson1459

2017/2/10

#
Super_Hippo wrote...
The time inside the discussion is not always the same as the one showing outside the discussion. I think that the time outside is the time when it was last edited... well, in this case, 23 is older than 22, isn't it? I probably don't get it right now.
I'm looking at the times in the discussion (I also noticed the difference in time between the home/activity page and in a discussion).
danpost danpost

2017/2/10

#
Posts on the activity page are always in posting order, starting with most recent. However, the display of the time (how long ago) of the post is for when it was last edited. In the discussion thread, the time is always the age of the original posting.
Nosson1459 Nosson1459

2017/2/10

#
danpost wrote...
Posts on the activity page are always in posting order, starting with most recent. However, the display of the time (how long ago) of the post is for when it was last edited. In the discussion thread, the time is always the age of the original posting.
That doesn't answer the question. The answer is that I'm tired because I thought before that there was something strange going on since your post was first and Hippo's second but yours said "23 minutes ago" and Hippo's said "22 minutes ago" so I git mixed up with the numbers and thought that it was saying your post was posted more recent but is still first, now I see that everything is the way it is supposed to be.
danpost danpost

2017/2/10

#
Actually it did answer it. Edit your last post in the 'Date' discussion and then look at the activity page.
Nosson1459 Nosson1459

2017/2/10

#
Nosson1459 wrote...
How is danpost's post first yet it's 23 minutes ago while Hippo's post is next and it says 22 minutes ago (before it was 22 and 21)?
In the actual question there is no mention of the activity page.
Super_Hippo wrote...
The time inside the discussion is not always the same as the one showing outside the discussion. I think that the time outside is the time when it was last edited... well, in this case, 23 is older than 22, isn't it? I probably don't get it right now.
<-- at the time I didn't get what the last bit means here then afterwards I understood (refer to last post). That's what you were saying but that doesn't mean that either of you answered the question. And make sure you read the whole previous post.
Nosson1459 wrote...
I'm looking at the times in the discussion (I also noticed the difference in time between the home/activity page and in a discussion).
danpost wrote...
Posts on the activity page...
danpost danpost

2017/2/10

#
Nosson1459 wrote...
How is danpost's post first yet it's 23 minutes ago while Hippo's post is next and it says 22 minutes ago (before it was 22 and 21
Nothing to do with the activity page for the question.
Does not specify where at all (when you first brought this up). No wonder we got confused -- as the only place they do show up out of order is on the activity page. I guess there really was no question to answer after all. Seems you were mistaken about the issue to begin with.
Nosson1459 Nosson1459

2017/2/10

#
So due to my confusion I guess it really only makes sense to be talking about the activity page.
You need to login to post a reply.