PDA

View Full Version : Need some help on a Adventure Game.



Santa Clause
January 14th, 2008, 11:14 AM
Hey everybody,
I've made loads of simple click and search adventure games like "Grab that key and open that door".
Easy scripting, mostly stops and GoTo's.
Thing is, I've been checking out Else, If and _Root.
And I found out that stuff is way better to create these kinds of games.
If i had a game i needed to make 1 frame 10 times, because of all the items and combination of 'em.
Here's a .fla with an easy example of how it should be.
Thing is, is there anyone who could remake that or add the scripts I mentioned earlier?
I just need a small example so I can get started by learning it on my own better.
**Example**
If>you have key>Door opens, bit like that.

Thanks for the time reading this,

Santa. :sure:

Marz
January 14th, 2008, 02:19 PM
Adventure games like this are indeed simple. The way I would manage it would be a little differently than most other ways however but it really depends on how you want to structure your game.

You could hold your inventory in an Array and access the items that way to find out if you have something in stock or you could do each item individually. I would suggest storing everything in an inventory or in the "character's bag" so to speak.

As far as the rooms are concerned however. Being that you don't really need to have a lot of optimization in this type of game since there really isn't alot of moving objects on the screen and having a 5 fps screenrate probably wouldn't hurt a thing. I would make your life easier by making each individual room an individual .swf file and have each one linked together by a central .swf module.

If none of this is making sense, I apologize. I started on a new energy multivitamin from GNC and had a couple cups of coffee this morning and I feel like the entire day is just whizzing by my head. PM me personally if you have any specific questions and I'll see what I can do to help you out bud.

Santa Clause
January 14th, 2008, 02:23 PM
Well, Yeah a seperated Inventory would be pretty handy, specially if I'm gonna use more advanced scripting so I don't have to put in 1 slot for being lazy.
But the multiple .swf files idea sounds kinda random though, I could just put it in scenes/frames right?
I just mainly need a script that makes me able to make doors recognize the key you got in your inventory or the monster that recognizes the monster slaying sword in your inventory and so on.
Thanks for helping out, though!