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
Saving the world moves my objects randomly
By theoo0308, with 5 replies.
Last reply by danpost, almost 5 years ago:
theoo0308 wrote...
Thanks for your suggestion. The version that does not have this problem is greenfoot 3.1.0 ,for everyone interested in this topic.
That is the exact one I am using (USB version). Have not tried newer.
One specific actor will make game lag if added in the world
By Gbasire, with 2 replies.
Last reply by Gbasire, almost 5 years ago:
Oh you're right I forgot about this, it works now ! Thanks !
why i cant make new levels with super()
By Vitalka, with 3 replies.
Last reply by danpost, almost 5 years ago:
Vitalka wrote...
it worked but if I play my game and die, I get an error.
What (exactly) was the error? What is the coding around which the error occurred.
I seared on the internet for solutions and found this code , which worked for me even if I died: << Code Omitted >> unfortunately I don't understand what the code does xD. Could someone explain this please because I need to explain my code in school.
This class is intended to be a parent class of your game worlds. It contains 3 constructors (beginning on lines 3, 8 and 13) and a method (to be overridden in som
Code is freezing while an actor is doing its job
By XApple15, with 5 replies.
Last reply by XApple15, almost 5 years ago:
RcCookie wrote...
Look at
this
Thanks ! That worked !
Setting multiple images for an Actor
By XApple15, with 10 replies.
Last reply by danpost, almost 5 years ago:
XApple15 wrote...
Line 43 on Player class? There’s only “ } “ on line 43
Are you sure? Check again.
Enemy movement
By JustAnArchosaur, with 3 replies.
Last reply by danpost, almost 5 years ago:
JustAnArchosaur wrote...
First, the actor is coded to move at a speed of three,
Alright: <Code Omitted>
I'm not quite sure how this code works (if (Greenfoot.getRandomNumber(100) < 10)) but I believe it's stating that between moving 10 and 100 units on the map, which then the actor will turn 45 degrees
I believe you mean: <Code Omitted>
Need help with delay
By XApple15, with 13 replies.
Last reply by danpost, almost 5 years ago:
XApple15 wrote...
I have like 40 pictures showing one by one with a delay of 0,5 sec , so that’s 2 FPS which is a low framerate , this should not be the issue here
You should probably run your scenario at normal speed (60fps ~ 50speed) and just change the image every 30 frames. For most scenarios, using frames makes for more consistent behavior. Any lag could throw timing of interplay of actors off when using system time.
How to use a method of another class
By Mayokeks, with 2 replies.
Last reply by Mayokeks, almost 5 years ago:
Thank you very much, finally I found the solution
our? errors in crab tutorial 3, any help appriciated
By Harryandharrysmom, with 2 replies.
Last reply by Harryandharrysmom, almost 5 years ago:
oooh thanks appreciate your help!!
How to add touch mouse command?
By ShauryaThapan, with 2 replies.
Last reply by ShauryaThapan, almost 5 years ago:
Thanks, works perfectly.
hitboxes are very inaccurate to the real hitbox of the bullet
By cq1um, with 2 replies.
Last reply by danpost, almost 5 years ago:
cq1um wrote...
the image of the bullet is transparent, yes i have tested the hitboxes https://www.greenfoot.org/scenarios/9908 < here, and the hitbox seems fine to me on the car (that is being shot at) aswell as the bullet.
Do not link someone else's scenario for a problem in one of yours. Provide
your
code (
Bullet
and
Car
classes).
New to Greenfoot... How to make object not protrude world edge.
By Pijmzhchus57, with 3 replies.
Last reply by Pijmzhchus57, almost 5 years ago:
danpost wrote...
Pijmzhchus57 wrote...
I would like to make my actor not protrude world edge. It kinda goes halfway and then it blocks the move input.
The actor's image is centered at its location. Use actor's location and the width of its image to adjust location of actor when too close to an edge (after a move).
OK. I somehow figured it out! Thanks, your reply helped me get to the bottom of it ;)
How to save a project as a greenfoot file
By KeLLox, with 1 reply.
Replied to by danpost, almost 5 years ago:
KeLLox wrote...
How do I save a Greenfoot projekt as a Greenfoot file(so you can open it directly not as a Folder)?
Just share it as an application. It will be saved as an
Executable Jar File
(where
"Open
" runs the program outside the greenfoot application).
I need to display Hint type text
By XApple15, with 12 replies.
Last reply by danpost, almost 5 years ago:
XApple15 wrote...
If the actor where the boolean IsDeleted is named Cut , so the reference to the boolean whould be : Cut IsDeleted ? ( ex : if ( Cut IsDeleted == true ) { ....} ) ?
Well, if
Cut
is the name of the class that creates the actor with the
boolean
, then
Cut
is not necessarily, and probably should not be the name of the reference (to avoid confusion). Example: <Code Omitted>With this line,
cutActor
is the name of the reference to the actor. <Code Omitted>Here,
Randomly Generating Actors
By JustAnArchosaur, with 5 replies.
Last reply by JustAnArchosaur, almost 5 years ago:
Thank you for your help :)
91
92
93
94
95
96
97
X