# Game

**URL:** <https://forum.kirupa.com/t/game/19704>\
**Category:** Uncategorized\
**Created:** [April 30, 2003, 6:42pm UTC](https://forum.kirupa.com/t/game/19704 "2003-04-30T18:42:27Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![fishtank](https://avatars.discourse-cdn.com/v4/letter/f/b3f665/32.png) [@fishtank](https://forum.kirupa.com/u/fishtank)\
**Post date:** [April 30, 2003, 6:42pm UTC](https://forum.kirupa.com/t/game/19704/1 "2003-04-30T18:42:27Z")

</div>

i want to make a small game, ive already got the characters and scene and everything and my move-engine, but i do not know how to make this:

i want to have some blocks or rocks or trees or walls in my scene, and my characters shouldnt be able to run through them or stand on them…

please help me

---

<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:** [May 1, 2003, 12:13am UTC](https://forum.kirupa.com/t/game/19704/2 "2003-05-01T00:13:27Z")

</div>

youd use hitTest although im sure there are better ways.

---

<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:** [May 1, 2003, 7:34am UTC](https://forum.kirupa.com/t/game/19704/3 "2003-05-01T07:34:55Z")

</div>

i thought about hit test too, and tried it out, but i realised sth:

lets say theres a object like that:

OOOOOOO

and my character walks up from here.

my code would have been that the character cant move on the y -axe to prevent him walking over the object. but then i cant walk down anymore…

see what i mean? there must be another way

---

<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:** [May 1, 2003, 11:35am UTC](https://forum.kirupa.com/t/game/19704/4 "2003-05-01T11:35:46Z")

</div>

you should still be able to walk down using hittest function. I have a fla at home where u move a ball but it cant go outside the box using hittest function i’ll post it when i back home. 🙂

---

<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:** [May 1, 2003, 11:37am UTC](https://forum.kirupa.com/t/game/19704/5 "2003-05-01T11:37:47Z")

</div>

thanks, ive already found the answer

my game should be ready soon

---

<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:** [May 1, 2003, 11:39am UTC](https://forum.kirupa.com/t/game/19704/6 "2003-05-01T11:39:10Z")

</div>

Ok cool, what was the answer by the way?

---

<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:** [May 1, 2003, 7:58pm UTC](https://forum.kirupa.com/t/game/19704/7 "2003-05-01T19:58:19Z")

</div>

well i used hittest 😛

current version: [http://195.230.176.35/flashexp/chambers.html](http://195.230.176.35/flashexp/chambers.html)

if you enjoy pixelart and would like to help me with characters and maps, would be much 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:** [May 1, 2003, 7:59pm UTC](https://forum.kirupa.com/t/game/19704/8 "2003-05-01T19:59:29Z")

</div>

could you please post the fla with the ball?

maybe i could use it…
