I'm in a class at school called "CTA" (Computer Technology Applications), which is basically learning Macromedia Flash. We're supposed to make a game for our final project of entirely our own idea. My game idea was to make a game almost exactly like Neopets' game, "Meerca Chase". If any of you have ever played it, you know it's basically a spin-off of the game "Snake".
Does anyone have any idea as to what the ActionScript for the "Snake"/"Meerca" movement would be like?
Here's a
link to Meerca Chase II. Neopets deleted Meerca Chase I from their website. Honestly, my goal is for this game to be a replica of the original Meerca Chase, but with different graphics. With that said, does anyone have any ideas on the ActionScripting involved for a game like this to work? My parameters I needed are something like the following:
ActionScript Code:
onClipEvent (enterFrame) {
if (Key.isDown(Key.RIGHT)) {
setProperty("", _rotation, "0");
_root.tadpole._x++;
}
if (Key.isDown(Key.LEFT)) {
_root.tadpole._x--;
setProperty("", _rotation, "-180");
}
if (Key.isDown(Key.UP)) {
_root.tadpole._y--;
setProperty("", _rotation, "-90");
}
if (Key.isDown(Key.DOWN)) {
setProperty("", _rotation, "90");
_root.tadpole._y++;
}
}
My game involves eggs following a tadpole. I have the tadpole movement down, except I need the tadpole to go in a given direction on keypress, and to keep going in that direction without the key being held down.
Also, I need to eggs to follow the tadpole. What kind of script would I use to do something like this?