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
How do you restart the level when the player touches the ground?
By MickeyMouse123, with 5 replies.
Last reply by danpost, over 7 years ago:
MickeyMouse123 wrote...
Yep, I did that. But I keep falling through platforms from a great height. I know that the direction of movement will determine whether the player should be placed above or below the object it collided with but I don't know how I can alter my original code.
Line 76 ;should probably use the
getOneIntersectingObject
method instead of the
getOneObjectAtOffset
one. You can add another condition to line 77 such that the vertical speed must be positive.
Error: BossFight cannot be cast to game
By Razaph, with 2 replies.
Last reply by Razaph, over 7 years ago:
Already fixed it ^^ When I joined the BossFight World I tried to Access to the game world and that was the reason
How do I "hit" another Object of Actor?
By Yorik, with no replies.
So, I am trying to program a brawl game like Smash Bros., but simpler. The problem is, I don't know how I can make two actors hit each other... Can someone help me, please? Thanks in advance, Yorik P.S.: sorry if my English is not very good
Character Falling Through Floor
By Underdemon, with 19 replies.
Last reply by danpost, over 7 years ago:
Wow -- I had no idea you were talking about a thin line of green. As such, you might be better off adding
Ground
objects into the world -- just invisible rectangles whose top edges line up with the horizontal green lines. The Ground actors can then be used to prevent the "falling through" issue. Let us fix the "subclass doesn't change" issue later and worry about the "falling through" right now.
Code
By Multisciente, with 8 replies.
Last reply by Multisciente, over 7 years ago:
Ok. =)
How can I convert from getObjectsInRange into Actors?
By The_bazm, with 3 replies.
Last reply by danpost, over 7 years ago:
The_bazm wrote...
Thank you. I have another question: how can i check if an actor belongs to a specific class.
Use the
instanceof
boolean comparison operator. For examples: <Code Omitted>
Platform Problems
By SymInvader, with 16 replies.
Last reply by SymInvader, over 7 years ago:
Tried it out and it works now. Thanks for the help! :)
theres a not a statement and i dont know how to fix it
By blurgram22, with 1 reply.
Replied to by danpost, over 7 years ago:
blurgram22 wrote...
i need help i'm making a program and theres the not a statement error and the expected ether ; or ) symbol
Will need to see that class codes to help.
When using a while loop, it doesn't use any of the wait variables i've used for delay. It just skips it all.
By TheKgroup, with 4 replies.
Last reply by danpost, over 7 years ago:
TheKgroup wrote...
How would I be able to loop it until it gets to 0 without it going all at once? I want it to have a timer so it goes 3, 2, 1.
You can add: <Code Omitted>to literally pause for a time frame. A simplified version would be like:
Get an actor to move down when actor is at edge.
By Notted, with 9 replies.
Last reply by Notted, over 7 years ago:
This seems to be working. <Code Omitted>It's rather noting that most of my code comes from my Kaboom Remake Full
Control Animated gif with key press
By dejong1968, with 1 reply.
Replied to by danpost, over 7 years ago:
Line 1 should read: <Code Omitted>Any change at all? (not sure if that had anything to do with any part of your issue)
I'm making a lightcycles game and there's a small problem
By Nico_ti, with 4 replies.
Last reply by VandeGraaffgenerator, over 7 years ago:
Amen
Lightcycles game problem with trail
By Nico_ti, with 3 replies.
Last reply by danpost, over 7 years ago:
Nico_ti wrote...
Alright thanks for the help! But is there a way to edit the thickness of a line?
No. The only changeable pre-set drawing state is the color and there is no line drawing method with a parameter for thickness.
How do you check if one actor is in front of another?
By MrMinestrone, with 1 reply.
Replied to by danpost, over 7 years ago:
MrMinestrone wrote...
I am making a game in which if you crash into another actor the other one gets deleted. How do I do this?
Do you mean like this: <Code Omitted>placed in code after the actor moves?
Game stuck on Initialising... when uploaded to the website
By AttackTheMOON, with 2 replies.
Last reply by AttackTheMOON, over 7 years ago:
@nccb Thanks for the help!
205
206
207
208
209
210
211
X