This site requires JavaScript, please enable it in your browser!
Greenfoot
Username
Password
Remember Me?
Sign Up, Lost Password
Activity
About
Documentation
Download
Discuss
Scenarios
Discussions
You need to login to take part
Current Discussions
Executing a static method every frame
By RcCookie, with 7 replies.
Last reply by danpost, almost 6 years ago:
RcCookie wrote...
I know, but how do I know that it's not been executed this frame already? If I will at some point create a more complex world basis, I might let it do that stuff because I know every of my words extends from it and will in fact run that code, but then I might as well create an instace of time.
If you only call it once from your
World
subclass'
act
method, it will only execute once per frame.
How to get the currently running world
By RcCookie, with 8 replies.
Last reply by Kostya20052011, almost 6 years ago:
Again, I don't quite understand, but I think you've already found the answer ;)
Greenfoot random number with it duplicating
By Kaggs, with 8 replies.
Last reply by Kaggs, almost 6 years ago:
i have hard coded it so that there are no duplicate
What Age is "old enough" for Greenfoot?
By gedoente, with no replies.
Hi, just a quick question, what age will be a good age for my kid to start with Greenfoot?
Hello help karlo
By Roshan123, with 7 replies.
Last reply by Kostya20052011, almost 6 years ago:
Yes, that's what I wanted to say)
Stopping Objects
By Vernz, with 3 replies.
Last reply by RcCookie, almost 6 years ago:
I was assuming that you wall class is called „Wall“. Otherwise you have to change line 6.
How to display an int on the screen?
By ANIMALLOVER09824, with 17 replies.
Last reply by RcCookie, almost 6 years ago:
ANIMALLOVER09824 wrote...
Should this work? <Code Omitted> Because it doesn't this is all it shows, <Image Omitted> and i have score set as 3
Yes, if the method is called
Timestep between two frames
By RcCookie, with 5 replies.
Last reply by danpost, almost 6 years ago:
RcCookie wrote...
No the idea is to get the fraction of a second that the last frame took. That means that if you count up every frame by deltaTime the value should increase by one each second
If I understand correctly, this should do: <Code Omitted>
Increment
By Roshan123, with 5 replies.
Last reply by danpost, almost 6 years ago:
RcCookie wrote...
You're right, it has to be like this: << Code Omitted >>
That is better.
Random
By Roshan123, with 5 replies.
Last reply by danpost, almost 6 years ago:
Roshan123 wrote...
Its not working I used showText It shows that the qTimer is not increasing
Show codes. Also, it would never increase, anyway. It would be set (from zero) to 180 and decrease from there.
Help me as soon as possible
By Roshan123, with 14 replies.
Last reply by danpost, almost 6 years ago:
Roshan123 wrote...
<< Code Omitted >> Now is it correct???
It should at least compile now.
give me something to do thanks
By ronald, with 7 replies.
Last reply by ronald, almost 6 years ago:
You're welcome, explain your problem to me
Help plz
By Roshan123, with no replies.
Can i adjust the world size according to the user's screen size in greenfoot Is it possible or not
Rosace Curve
By ronald, with 9 replies.
Last reply by ronald, almost 6 years ago:
it also works thank you
help plz
By Jek, with no replies.
i just joined today on a macbook and i dont know how to make a scenario. plz help!
114
115
116
117
118
119
120
X