A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: How to setup 2 player mode and change turns

  1. #1
    Junior Member
    Join Date
    Apr 2013
    Posts
    2

    How to setup 2 player mode and change turns

    Pretty new to Actionscript in general and just finished making a single player skee ball game. I want to add a 2 player mode but not sure how to go about it. How would I setup the players and the player turns ? Thanks in advance.

  2. #2
    Senior Member calmchess's Avatar
    Join Date
    Sep 2006
    Location
    Earth
    Posts
    2,588
    You will have to use a media server either flash media server , Wowza , or red5 so you can communicate between client applications

    --calmchess
    ~calmchess~

  3. #3
    Junior Member
    Join Date
    Apr 2013
    Posts
    2
    Quote Originally Posted by calmchess View Post
    You will have to use a media server either flash media server , Wowza , or red5 so you can communicate between client applications

    --calmchess

    My bad. I meant to say locally, no network. Just a simple 2 player setup on the same computer.

  4. #4
    Senior Member calmchess's Avatar
    Join Date
    Sep 2006
    Location
    Earth
    Posts
    2,588
    well if you like playing a two player game by yourself or with two people at the same computer. just use and if statement on your function calls something like.

    PHP Code:
    if(player==1){
    //moveplayer1();
    }else{
    //moveplayer2();

    ~calmchess~

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