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 to make an actor appear after something happens?
By Poseidon420, with 4 replies.
Last reply by Poseidon420, over 7 years ago:
Thank you dan it worked now
Multiple worlds
By Andrew0739, with 1 reply.
Replied to by danpost, over 7 years ago:
Andrew0739 wrote...
How could i save all the states of my main world, create a different one, lets call a battleWorld, do some stuff in it, and then go back to the main world without resetting everything (saving the progress). For example i have the main world where the player walks around, if the player comes in contact with some particular object then it will initiate battle and once the battle ends the world will continue running where it left off. Not too sure how to implement this. I was told that a possibility could be to create the new "battleWorld" and have it point to the original world
Animation help?
By MadameMinuit, with 3 replies.
Last reply by MadameMinuit, over 7 years ago:
Thank you so much! I don't think I did quite what you intended, but this new code does what it's supposed to do.
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
205
206
207
208
209
210
211
X