At 12/10/03 11:47 AM, Drumminjay wrote:
ok...i figure this it'd be the place to post this...i'm trying to make a game...but i've only been using flash for like a week now...and i can't quite get the scripts down for the following actions...i wanted to know if someone could help me...here they are
You've only had Flash for a week?! Why are you attempting to make a game so early?! Start small. Games aren't easy to make, y'know.
1) i can get a mc to be the mouse pointer...but i can't make it so when i click on something it changes clips (ex...let's say the pointer is a gun...when i click i would want it to look like a gun firing)
onClipEvent (mouseDown) {
this.gotoAndPlay("frame");
}
2)how do i make a score board
With PHP or MySQL or some other server-side programming language. Ask the programming forum for some help.
3)how do i make it so when i click on something it changes to another MC
You can't actually do that. But, you can make it look like it is.
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.gotoAndStop("frame");
}
}
4)how do i make it so i have to click on it multiple times in order to change to a different mc...kinda like the mc that i'm clicking on has energy
onClipEvent (load) {energy = 5;}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true) && ++i >= energy) {
this.gotoAndStop("frame");
}
}
i have an actionscripts bookl...but it doesn't really have anything in there...like it shows you how to make a preloiader...and it doesn't work...and like i downloaded the NG one...and the script was a bit different...so i kinda got screwed...PLEASE HELP ME!!!
There are so many different ways to make a preloader. The preloader in your book would have worked, it's probably just because you were doing something wrong. If that was the case, I recommend you experiment with Flash first, before making a game.