A Flash Developer Resource Site

Page 3 of 5 FirstFirst 12345 LastLast
Results 41 to 60 of 93

Thread: pool game need help

  1. #41
    Senior Member
    Join Date
    May 2016
    Posts
    451
    i have a new idea

    can you add a new blue poolstick

    and chane 8 balls to blue color and the other red color

    first start (randon red or blue poolstick )

    the winer is who droped his balls first

  2. #42
    Senior Member
    Join Date
    May 2016
    Posts
    451
    an other idea

    add compobox to set the number of the balls (4, 8,16,20)

  3. #43
    Senior Member
    Join Date
    May 2016
    Posts
    451
    i think the game become more professional

  4. #44
    Senior Member
    Join Date
    May 2016
    Posts
    451
    you : I would love to add some multiplayer to the game but not before you agree on a feature like that.

    yes of course

  5. #45
    Senior Member
    Join Date
    May 2016
    Posts
    451
    i designed a new style of the game



    http://www.mediafire.com/file/l4wcel...style.swi/file

    and i added the combobox in the stage
    and i added the blue poolstick in the library
    can you please add the script to this style
    thanks for help

  6. #46
    Client Software Programmer AS3.0's Avatar
    Join Date
    Apr 2011
    Posts
    1,404
    this changes the stick color and turn is random: download

  7. #47
    Client Software Programmer AS3.0's Avatar
    Join Date
    Apr 2011
    Posts
    1,404
    this version adds 7 blue balls & 7 red balls & the 8 ball: download

  8. #48
    Senior Member
    Join Date
    May 2016
    Posts
    451
    you are genius

  9. #49
    Senior Member
    Join Date
    May 2016
    Posts
    451

  10. #50
    Senior Member
    Join Date
    May 2016
    Posts
    451

  11. #51
    Client Software Programmer AS3.0's Avatar
    Join Date
    Apr 2011
    Posts
    1,404
    player 1 hits player 2's ball, so player 2 gets the score.

    player 1 only hits player 2's ball so player 1 gets a miss.

    player 1 hits player 1's ball so player 1 gets a hit.

    player 1 hits player 1's ball and player 2's ball so player 1 gets a hit and player 2 gets a hit

    time runs out, game over for all

    first player that gets 7 balls in wins.

    swish file: download
    Last edited by AS3.0; 02-24-2021 at 11:32 PM.

  12. #52
    Client Software Programmer AS3.0's Avatar
    Join Date
    Apr 2011
    Posts
    1,404
    I had to change something, new file: download

  13. #53
    Senior Member
    Join Date
    May 2016
    Posts
    451

  14. #54
    Senior Member
    Join Date
    May 2016
    Posts
    451
    Possible if you would kindly explain the code because there are some codes that I could not understand
    I hope to write a comment for each line and I hope the professor will explain it to his student

  15. #55
    Client Software Programmer AS3.0's Avatar
    Join Date
    Apr 2011
    Posts
    1,404
    Can you explain the drop down combo, what does it need to do exactly?

    I will make a commented version, can you tell me which lines specifically to comment on?
    Last edited by AS3.0; 02-25-2021 at 02:43 AM.

  16. #56
    Senior Member
    Join Date
    May 2016
    Posts
    451
    combobox numbers

    4 =====> the number of balls = 4
    8 =====> the number of balls = 8
    16 =====> the number of balls = 16
    20 =====> the number of balls = 20

    if Possible explain all lines

  17. #57
    Client Software Programmer AS3.0's Avatar
    Join Date
    Apr 2011
    Posts
    1,404
    ok here is the combo box numbers and than select the newgame button: download

    So I am going to put in the old comments + some new comments?

  18. #58
    Client Software Programmer AS3.0's Avatar
    Join Date
    Apr 2011
    Posts
    1,404
    Hello kofa, I had to change something, use this file: download

  19. #59
    Client Software Programmer AS3.0's Avatar
    Join Date
    Apr 2011
    Posts
    1,404
    If player 1 gets player 2's last ball in, player 2 now wins.

    swish: download
    Last edited by AS3.0; 02-26-2021 at 02:47 AM.

  20. #60
    Senior Member
    Join Date
    May 2016
    Posts
    451

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