Hit Test or something else?
I have flash cs3
im using actionscript 2
the script im working with was originally written for flash 5
im making my first real game. they always say the first is the toughest. i hope it gets easier the second time around.
i used to use flash a lot as a pencil tester for traditional pencil/paper animations.
i started messing with it making simple stuff like buttons, and i was really intrigued by it. I messed around with "art" based games just making the guy move and everything.
The game im making now is a tile based game, a lot different than anything else i ever did in flash. i understand most of the codes and everything, but i dont think i'd be able to really write the codes from scratch just yet...
but the thing im asking is how can i make it so when the character hits a certain tile, it goes to a new frame because i have about 3 levels on one frame, then i want an animated scene before the next few levels.
in the art based games i would just do a hitTest, like this...
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
this._parent.gotoAndPlay(2);
}
}
on the movie clip. can i do something like this in a tile based game?
i tried doing this itself, but it didnt work.
so is there something else i can put that does the same thing?
ohh and the code im using to get to the different levels on the same frame is pretty much a door, that brings it to a different map set on the same frame's code.
i dont know if what im asking is really making any sense, but thanks for listening to my question at least.