A Flash Developer Resource Site

Page 1 of 2 12 LastLast
Results 1 to 5 of 9

Thread: 2 player turn based

  1. #1
    Junior Member
    Join Date
    May 2001
    Posts
    12

    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]

  2. #2
    Senior Member D and J Media's Avatar
    Join Date
    Jan 2003
    Location
    NC, USA
    Posts
    300
    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

  3. #3
    Junior Member
    Join Date
    May 2001
    Posts
    12
    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]

  4. #4
    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.

  5. #5
    Junior Member
    Join Date
    May 2001
    Posts
    12
    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center