Coding a game

I don’t know if this is supposed to be here, or under “tutorials”. But anyhoo, i’ll just post it here…

I want to make a game, similar to pacman. Now, I know how to move the player using keypresses, that’s easy, but how do i stop it when it hits a wall?
I was thinking of making the “levels” as one big jpg or something, and then make another invisible layer on top of that gfx to make the walls, so I have one overal wall to hit into…

Also, I want “pickups” to appear randomly in the maze as u pick up other stuff…

Does anyone have some tips/pointers to start out this project?
Any help would be greatly appreciated… :slight_smile:

Try this fla. I found on a games forum.

Man… I just posted this thread, thinking someone would hopefully have replied tomorrow… and voila, a reply LESS THAN A MINUTE LATER!!

MAN this forum is awesome…

But of course, i already knew that… =)


Also don’t make just one big jpg (actually depends what you’re after).

Do you know how to make maps with arrays?

Check these out:


Thanks Flex for the walls fla. worked GREAT! :slight_smile:

Now that the walls have been covered, there’s just the random popup of objects when i pick up some other thingy…

Where’d u find that fla. flex?

I have NO idea how to make games in flash at all… i just thought making one big pic would be easier, I don’t trust flash’s ability to tile parts of a level… Flash handles imported graphics strange…

Anyhoo, it’s just a fixed pic, no scrolling or whatever…

Someone called Ed Mack. His tutorials are good.

Some good stuff there.

Thats not where I got the walls.fla from - I’m not sure where I got it from. If I can find in in my 1 milllion favourites list I’ll post it.

Thanx flex! :slight_smile:

Yeah i have a million fav’s too… mostly Photoshop though…

Great links, Flex! My personal favorite is this one but I guess they must be pretty similar. It really makes me want to make a game some day…

pom :asian:

Like I said before, when I sift through my favourites I’ll try and post more links/flas. I use Flash primarily for games.

What kind of game where you thinking of making?

Are you asking me or Eilsoe?

pom :stuck_out_tongue:

I was asking you, but eilsoe is welcome to reply :cool:

Well, I don’t know yet. The classic tile-based game I guess. I was very impressed by a Zelda game I saw on OutsideOfSociety, so I think it will be something like that (even though I heard that Tetris is the first thing to do).

By the way, do you have anything online? I’d love to see some of your work :slight_smile:

pom :asian:

oh and u should try

Thats stuff about tile based gaming and tings like that. got some tutorials and examples there :slight_smile:

Have a look at these flas. There are 3. They are good examples of moving characters and AI. Good for Zelda type stuff.

I found them on the net.

I’m posting seperately because of file size.

Here’s the first



wow nice. but i still think you should use tiles…
oh well looks good anyway…oh on the site i posted it has a zelda example u should have a look at that :slight_smile:


The fla’s aren’t mine. I came across them in my hunt for game tutorials.

Outsideofsociety are good but quite limited in tutorials.

For the heavy duty absorption of gaming tricks from the pros has an excellent games forum. Probably the best I’ve come across so far.

Hey Bezzer, that’s the link I just posted :slight_smile: The name didn’t appear because of that stupid board…

I’ll check all this when/if I get my comp back. Thanks!

pom :asian: