-
2 player turn based
Hey. I'm a kind of a newbie at flash and i was wondering how u set up a 2 player turn based game. I want it to act like a board game and i dunno how to set it up so each person takes turns and moves according to the dice # showing. The dice #'s are on the corresponding frame (dice #1 = first frame, dice #2 = frame 2, etc.).
Thanks in advance
[swf width="300" height="40" background="#FFDDBB"]http://www.geocities.com.com/knightsota/sig2.swf[/swf]
-
Senior Member
i think the simplest way is to oput player positions in a frame in a MC, then _root.player1 gotoFrame(current frame + dice)
As for taking turns, just set a variable turn = and if turn = 1 move player 1 set turn +1, if turn =2 move player2 set turn -1
-
im sorry but.. whats an MC? lol
im a newb
[swf width="300" height="40" background="#FFDDBB"]http://www.geocities.com.com/knightsota/sig2.swf[/swf]
-
MC stands for Movie Clip.
No offense meant here, because your enthusiasm is great to see, but you might want to get a better understanding of the application itself before you delve into trying to make games. Try going through all the tutorials that come with Flash and then you'll have an easier time with more advanced techniques.
Just my opinion.
-
yeah i understand im a noob, but i DID know what a movie clip was.. just not the acronym =D. i have done all the tutorials, but this is my first time using actionscript to actually do something besides start and stop.
anyone know any good sctionscript tutorials? heh
[swf width="300" height="40" background="#FFDDBB"]http://www.geocities.com.com/knightsota/sig2.swf[/swf]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|