Sign Up, Lost Password
What is happening right now?
Balls of doom
escape the blocks
CAR RACE Project
How to access a variable from another class.
By Jeb_CC, with no replies.
Yes, yes. I know you're immediately going to think; "Look up a tutorial, dammit!" Well, I have. I think I've tried... 20 at least. NONE of them have worked. I've ALWAYS gotten an error. Either; "Null point exception" or "Variable not found" and it's driving me insane. @_@ This is a little confusing at first but I need two classes to communicate to each other. (Pass variables) One is called Card2 which will have the variable needed. The other is Card which needs to access that variable. I've tried so many methods it's not even funny. I know how it works, but I can't for the life of me do it. I've looked at other people's code and everything. No, my Greenfoot is not bonkers. I've done it before, but that was copying off someone's work, and that took me 4 hours to figure out what the hell I was doing. I'm not going through that again. So yeah, what code do I need? And for what classes? I know some methods used the world class and others didn't need to at all. It's confusing.
I have a car game i want to create or get a background sound
By david12, with no replies.
I want to create background sound when i play my game or and i want to uses ArrayList. i know how to do this another way but i want to use ArrayList. Can you tell me how i can do this Thank you
reply to need help figuring out how to move my actor at a get random speed
By kyles247 - about 4 hours ago
Ok thanks i will try to also add to this code. Thanks for all the help
Update: Balls of doom
By LordLuhar - about 6 hours ago
Comment on Balls of doom
By LordLuhar - about 7 hours ago
My first attempt at a game, hope you enjoy, Feedback is appreciated
Comment on PigsPizzaPalace
By SinorKirby - about 9 hours ago
Great work! The counter for the amount of pizza the mice have eaten doesn't work, which had me confused as to why I was losing at ...
New Scenario: TankWarZ
By qwertz - about 10 hours ago
Comment on CookieMonster
By andyogm - about 10 hours ago
I couldn't get the ship to eat more than two cookies. Is anyone else having that problem? Also the cookies don't disappear when eat ...
Update: escape the blocks
By keraattin - about 10 hours ago
The Blocks are speeder than golds
Comment on escape the blocks
By keraattin - about 11 hours ago
Thanks for suggestion now The Blocks are speeder than golds
Comment on fly simulator
By Riculo - about 11 hours ago
Soooooooooooo many spelling mistakes!!! love it!
New Scenario: fly simulator
By fejfo - about 11 hours ago
an old idiot game of mine