# Possible? or not

**URL:** <https://forum.kirupa.com/t/possible-or-not/34769>\
**Category:** flash\
**Created:** [November 6, 2003, 4:36am UTC](https://forum.kirupa.com/t/possible-or-not/34769 "2003-11-06T04:36:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![macneilslt](https://avatars.discourse-cdn.com/v4/letter/m/aeb1de/32.png) [@macneilslt](https://forum.kirupa.com/u/macneilslt)\
**Post date:** [November 6, 2003, 4:36am UTC](https://forum.kirupa.com/t/possible-or-not/34769/1 "2003-11-06T04:36:11Z")

</div>

is it possible to make a tile based game with using arrays?

---

<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:** [November 6, 2003, 5:24am UTC](https://forum.kirupa.com/t/possible-or-not/34769/2 "2003-11-06T05:24:22Z")

</div>

I’m going to ahead and say “Yes” even though I don’t know how to do it. I’m sure there is a way to use an array. 😃

---

<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:** [November 6, 2003, 5:33am UTC](https://forum.kirupa.com/t/possible-or-not/34769/3 "2003-11-06T05:33:35Z")

</div>

Yeah, there is.

Think about it like this:

tiles[0] = "hello"  
tiles[1] = “goodbye”

then, just have your gamepiece / character have a variable which is incremented or decremented based on it’s position. Then, compare it’s value with the array.

trace(tiles[gamepiecevariable]);

if gamepiecevariable == 0, you get “hello”; else, if it is == 1, you get “goodbye”

Should give you the basic idea.

–EP

---

<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:** [November 6, 2003, 5:40am UTC](https://forum.kirupa.com/t/possible-or-not/34769/4 "2003-11-06T05:40:36Z")

</div>

One of the best sites for this: [http://oos.moxiecode.com/](http://oos.moxiecode.com/)

---

<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:** [November 6, 2003, 5:40am UTC](https://forum.kirupa.com/t/possible-or-not/34769/5 "2003-11-06T05:40:51Z")

</div>

ahhh! what i meant to write, was…  
is it possible to make a tile based game WITH OUT, using arrays?

---

<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:** [November 6, 2003, 5:46am UTC](https://forum.kirupa.com/t/possible-or-not/34769/6 "2003-11-06T05:46:32Z")

</div>

Sure, but IMO you are just giving yourself more work and making things harder on yourself. The array method, although it can be tedious, is probably the most efficient method to do something like that with.

But I wouldn’t know for sure, i’m not a game programmer :-\
