This site requires JavaScript, please enable it in your browser!
Greenfoot back
MandolinBee
MandolinBee wrote ...

2012/10/23

Multi-room worlds possible?

MandolinBee MandolinBee

2012/10/23

#
Hi, I'm a newbie to programming in general, but mostly willing to work stuff out on my own, so please don't treat me too harshly! My children and I are sort of pushing our way through learning Java together, and they've come up with a project we'd like to attempt. Basically, they want to make a game that mechanically runs like the original Legend of Zelda or the Binding of Isaac. Basically, a world that you walk through room-by-room, but each of those rooms can be revisited, have certain aspects that are saved (like if you open a secret cave in room 5, it is open no matter how much later you return), the enemies stay cleared for a certain amount of time or a certain number of rooms you move away from them, and so on. My only question is if this is -possible- with greenfoot. Not asking anyone to try and tell me how to do it or hold my hand, I just don't want to be banging my head against a 6-ft thick steel wall before I find out the limitations just make it impossible. Thanks for your help!
Gevater_Tod4711 Gevater_Tod4711

2012/10/23

#
You don't have to bang your head against a steel wall. It is possible. This scenario is something like the game you want to proramm. May it helps you.
MandolinBee MandolinBee

2012/10/23

#
Yeah, I saw that scenario but I have 2 problems with it: first, you can't go back to a previously cleared room, and second, he didn't make his source available. :/
Gevater_Tod4711 Gevater_Tod4711

2012/10/23

#
Yes but It's possible to go back to a room you were before. And you sad you don't want us to help you with the source code. (But if you want someone can probably help you)
MandolinBee MandolinBee

2012/10/23

#
Well, I'll certainly come back when I have some specific questions, but for now my kids and I are having a blast just problem solving!
Upupzealot Upupzealot

2012/10/24

#
What a great parent! I can't imagine study how to program with my mom.(Ok, I'm an adult now) I can tell you surely that what you said is possible. If you need any help, just tell me. For the current question, I think you may write a class which is a "room", or use the World class like a "room". Maybe what you need is just the method Greenfoot.setWorld(World). BTW, make full use of Greenfoot's API, it's very clear with every function Greenfoot is offering. You can see it by double clicking the Actor or World class from the classes bar in Greenfoot.My suggestion is always come here and discuss with other people. Cause your codes couldn't always be a good one. And your kids need good codes or demos.
You need to login to post a reply.