|
-
Need help making map build clickable
I am feeling very very stupid today. I don't know why I am having such a problem with this. I know the issue is simple and why I can't find help in the search (too easy to post about, I guess)
Anyway, I am using CS3, with simple AS2 code to build a map of tiles. Using the build array method that is so common.
So I have my map, I build the map on the screen and it places the correct frame of the tile MC in the map as it should.
Now that I have the grid full of tiles I want to make them clickable. Thats it. Being able to click the tiles once they are placed.
Why can I not get the right code?
~MoN
If I am wrong, please just correct me and move on.. there is no need for all that pointing and laughing! ~MoN
-
var x:Number = 1; x /= 0;
when you're adding a tile, just use
[whatever the tile].onRelease=function(){
//stuff to do on click
}
-
Thanks for the assist. I was trying exactly that. For some reason it wouldn't work on external engine .as file, when I moved it into the map build code it works fine.
Thanks again.
~MoN
If I am wrong, please just correct me and move on.. there is no need for all that pointing and laughing! ~MoN
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|