# Character Selection Screen

**URL:** <https://forum.kirupa.com/t/character-selection-screen/49154>\
**Category:** programming\
**Created:** [April 20, 2004, 1:32pm UTC](https://forum.kirupa.com/t/character-selection-screen/49154 "2004-04-20T13:32:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ryanflair](https://avatars.discourse-cdn.com/v4/letter/r/b5a626/32.png) [@ryanflair](https://forum.kirupa.com/u/ryanflair)\
**Post date:** [April 20, 2004, 1:32pm UTC](https://forum.kirupa.com/t/character-selection-screen/49154/1 "2004-04-20T13:32:24Z")

</div>

Hello, I am working on a fighting game and would like to have a character selection screen. I thought the best way to have this work out is to have movie clips for each character, place those clips into an array, and then have up down left and right call up a different movie clip from that array. However I am hopeless with code so could someone please help me with setting up this array. thank you in advance

---

<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 4, 2004, 3:46pm UTC](https://forum.kirupa.com/t/character-selection-screen/49154/2 "2004-05-04T15:46:20Z")

</div>

> [@ryanflair](#):
>
> Fydus, well man I tried the code and it didnt work. so I am going to post up how i have the code.  
> var tanks = new Array(6);  
> //making variable to browse through the array  
> var index = 0;  
> //give names to each tank  
> tanks[0] = “HeavyMetal”;  
> tanks[1] = “Future”;  
> tanks[2] = “Rhidozer”;  
> tanks[3] = “Tusk”;  
> tanks[4] = “The Bullfrog”;  
> tanks[5] = “Dark Rook”;
> 
> and then I placed within each movie clip this, changing the name and number of the array of course:  
> //this goes inside one of your mc’s for picking a character  
> onClipEvent(load)  
> {  
> //shows that this is not selected  
> \_alpha = 50;  
> }  
> onClipEvent(enterFrame)  
> {  
> //check every frame if this is selected  
> if(\_root.tanks[\_root.index] == “Heavy Metal”)  
> //what ever mc this is in  
> {  
> //this shows that this mc is selected  
> \_alpha = 100;  
> if(key.isDown(Key.RIGHT))  
> {  
> //moves pointer to next character in array  
> if(\_root.index == 0)  
> \_root.index = 1;  
> else  
> \_root.index++;  
> //shows that this is no longer selected  
> //show selection how you want this is an example  
> \_alpha = 50;  
> }
> 
> nada. if you need anything else like the fla just let me know. thanks man. and yeah its good to be hooked on that anime.

hey man, there is a MUCH easier way… way easier that i thought of…  
i will post fla of what i did it doesnt require much action script at all…  
here is the link: [http://home.comcast.net/~chriskreamer/characterselection.fla](http://home.comcast.net/~chriskreamer/characterselection.fla)  
most of the code is on the red buttons on the side…
