# Coding a game

**URL:** https://forum.kirupa.com/t/coding-a-game/5160
**Category:** flash
**Created:** [September 3, 2002, 12:03pm UTC](https://forum.kirupa.com/t/coding-a-game/5160 "2002-09-03T12:03:35Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![eilsoe](https://avatars.discourse-cdn.com/v4/letter/e/9fc348/32.png) [@eilsoe](https://forum.kirupa.com/u/eilsoe)
#### Post date: [September 3, 2002, 12:03pm UTC](https://forum.kirupa.com/t/coding-a-game/5160/1 "2002-09-03T12:03:35Z")

</div>

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… 🙂

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [September 3, 2002, 12:06pm UTC](https://forum.kirupa.com/t/coding-a-game/5160/2 "2002-09-03T12:06:19Z")

</div>

Try this fla. I found on a games forum.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [September 3, 2002, 12:08pm UTC](https://forum.kirupa.com/t/coding-a-game/5160/3 "2002-09-03T12:08:18Z")

</div>

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… =)

ROCK ON !!

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [September 3, 2002, 12:10pm UTC](https://forum.kirupa.com/t/coding-a-game/5160/4 "2002-09-03T12:10:37Z")

</div>

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:  
[http://ed.gamegeared.com/flash/tuts/index.php?page=platform](http://ed.gamegeared.com/flash/tuts/index.php?page=platform)

Or [http://www.nonoche.com/imaging/en/index.html](http://www.nonoche.com/imaging/en/index.html)

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [September 3, 2002, 12:11pm UTC](https://forum.kirupa.com/t/coding-a-game/5160/5 "2002-09-03T12:11:54Z")

</div>

Thanks Flex for the walls fla. worked GREAT! 🙂

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?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [September 3, 2002, 12:15pm UTC](https://forum.kirupa.com/t/coding-a-game/5160/6 "2002-09-03T12:15:34Z")

</div>

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…

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [September 3, 2002, 12:24pm UTC](https://forum.kirupa.com/t/coding-a-game/5160/7 "2002-09-03T12:24:58Z")

</div>

[http://ed.gamegeared.com/flash/](http://ed.gamegeared.com/flash/)

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.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [September 3, 2002, 12:37pm UTC](https://forum.kirupa.com/t/coding-a-game/5160/8 "2002-09-03T12:37:21Z")

</div>

Thanx flex! 🙂

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

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [September 4, 2002, 10:05am UTC](https://forum.kirupa.com/t/coding-a-game/5160/9 "2002-09-04T10:05:43Z")

</div>

Great links, Flex! My personal favorite is [this one](http://www.outsideofsociety.idz.net/) but I guess they must be pretty similar. It really makes me want to make a game some day…

pom :asian:

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [September 4, 2002, 10:07am UTC](https://forum.kirupa.com/t/coding-a-game/5160/10 "2002-09-04T10:07:51Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [September 4, 2002, 10:15am UTC](https://forum.kirupa.com/t/coding-a-game/5160/11 "2002-09-04T10:15:16Z")

</div>

Are you asking me or Eilsoe?

pom 😛

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [September 4, 2002, 10:16am UTC](https://forum.kirupa.com/t/coding-a-game/5160/12 "2002-09-04T10:16:48Z")

</div>

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

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [September 4, 2002, 10:31am UTC](https://forum.kirupa.com/t/coding-a-game/5160/13 "2002-09-04T10:31:08Z")

</div>

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 🙂

pom :asian:

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [September 4, 2002, 10:34am UTC](https://forum.kirupa.com/t/coding-a-game/5160/14 "2002-09-04T10:34:27Z")

</div>

oh and u should try [http://outsideofsociety.idz.net/](http://outsideofsociety.idz.net/)

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

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [September 4, 2002, 10:40am UTC](https://forum.kirupa.com/t/coding-a-game/5160/15 "2002-09-04T10:40:13Z")

</div>

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

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [September 4, 2002, 10:41am UTC](https://forum.kirupa.com/t/coding-a-game/5160/16 "2002-09-04T10:41:02Z")

</div>

Second

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [September 4, 2002, 10:42am UTC](https://forum.kirupa.com/t/coding-a-game/5160/17 "2002-09-04T10:42:22Z")

</div>

Third

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [September 4, 2002, 10:44am UTC](https://forum.kirupa.com/t/coding-a-game/5160/18 "2002-09-04T10:44:38Z")

</div>

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 🙂

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [September 4, 2002, 10:47am UTC](https://forum.kirupa.com/t/coding-a-game/5160/19 "2002-09-04T10:47:29Z")

</div>

> Bezzer:

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 [flashkit.com](http://flashkit.com) has an excellent games forum. Probably the best I’ve come across so far.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [September 4, 2002, 10:48am UTC](https://forum.kirupa.com/t/coding-a-game/5160/20 "2002-09-04T10:48:12Z")

</div>

Hey Bezzer, that’s the link I just posted 🙂 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:

[Next page](https://forum.kirupa.com/t/coding-a-game/5160.md?page=2)
