Hello, I'm trying to introduce myself in flash platform games world but I'm still a noob with actionscript, I'm using this Tutorial to learn but it doesn't says how to get to next level or do some kind of event happen.
I wanted for my games some kind of goal item (like the giant ring in sonic adventure games) that when you grab it you go to a new scene or something but I can't. The actionscript I'm using for pickup objects (items) is this:
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {
// if this hits the char (_root.char)
_root.score.text++;
// _root.score goes up 1
unloadMovie(this);
// this movie clip is unloaded
}
}
And I need someone to tell me how to edit it so when the character grabs it it goes to a new frame or scene or play some cutscenes, events, etc...
please I will apreciate any help
Also if someone knows about a good platform game tutorial that actually works I would appreciate if you tell me