PDA

View Full Version : Game Help


ScottRiley
02-12-2006, 01:20 PM
Hi,
I'm having problems making a simple RPG in Flash and I have a few questions I hope you could answer.

http://img155.imageshack.us/my.php?image=swiftentertainmentpresents4gm.swf

The first blue button at the top will attack, the second will heal (ignore the messy animation) and the third will change your weapon.

That is what I have so far, but its extremely messy. i.e. all the different animations within the battle are done on the stage, should these be within movie clips instead?

If so, how would I go about making a button go and play a certain frame within that movie clip on (release) {mage.gotoandPlay(2);} just doesn't seem to work.

I plan on starting this project over once I know of better, more efficient ways of doing these things, so any help would be great. Also, if anyone has any questions other suggestions I haven't mentioned above please let me know, I want this game to be as good as it possibly can.

Thanks
Scott

[PAUL FERRIE]
02-12-2006, 01:26 PM
If your trageting a clip(mc) from a button that is in the same timeline then you can use this

on (release) {_parent.mage.gotoandPlay(2);}


hope it helps

ScottRiley
02-12-2006, 02:16 PM
Sorry, that didn't work. What I hope to have is my main stage, this will have the battle background on, the 'mage' movie clip and an enemy movie clip. It will also have three buttons, like the game I showed in the link above. Now, in the one above, when you click the third button along, it changes the weapon without any problems at all, i.e. it is going to a different frame within the weapon movie clip, however, on the one I am working on now, when I click a button to attack, I want it to play the attack animation within the movie clip, but it just stays on one frame.

Stage - Background, Buttons, Mage Movie Clip
|-Mage Movie Clip - Various body parts and animations.

That is the basic heirarchy of my layers if it helps