chancebanning
06-17-2008, 03:20 AM
Hey,
I'm hoping you guys could help me out with a concept for a certain aspect of a game I'd like to make. I don't want anyone to lay the code out for me, just an idea of what I should be reading into.
The game will be a platformer, but set at somewhat of an isometric view so the player can move up and down to some extent. There will be a number of rooms (movieclips) that the player can move throughout, and I plan on having them all on the stage at the same time but with their visibility toggled depending on what room the player is currently in. Either that or each room will be on a separate keyframe within the main timeline.
Here is what I'd like help with though...
For example, one room will have a number of rocks on the ground. I want the player to be able to pick up a rock and carry it around, and be able to drop it in any of the other rooms where it will remain unless moved again.
The challenge is that I want to be able to add any number of rocks/objects to any of the rooms, and not have to add a big chunk of code each time I do so.. ideally I'd like to just drag a "rock" movieclip onto the stage, add maybe one simple line of code somewhere that declares it's presence, and have the game know where to take it from there.
I'm not too sure what to be reading into here though, as this is new territory for me. I've heard of assigning objects to classes, adding them to arrays,.. I'm starting to get lost. If anyone can just point me in the right direction here, maybe go over an example or two, I'd really appreciate it.
Thanks!
I'm hoping you guys could help me out with a concept for a certain aspect of a game I'd like to make. I don't want anyone to lay the code out for me, just an idea of what I should be reading into.
The game will be a platformer, but set at somewhat of an isometric view so the player can move up and down to some extent. There will be a number of rooms (movieclips) that the player can move throughout, and I plan on having them all on the stage at the same time but with their visibility toggled depending on what room the player is currently in. Either that or each room will be on a separate keyframe within the main timeline.
Here is what I'd like help with though...
For example, one room will have a number of rocks on the ground. I want the player to be able to pick up a rock and carry it around, and be able to drop it in any of the other rooms where it will remain unless moved again.
The challenge is that I want to be able to add any number of rocks/objects to any of the rooms, and not have to add a big chunk of code each time I do so.. ideally I'd like to just drag a "rock" movieclip onto the stage, add maybe one simple line of code somewhere that declares it's presence, and have the game know where to take it from there.
I'm not too sure what to be reading into here though, as this is new territory for me. I've heard of assigning objects to classes, adding them to arrays,.. I'm starting to get lost. If anyone can just point me in the right direction here, maybe go over an example or two, I'd really appreciate it.
Thanks!