A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: random rotation game

  1. #1
    Junior Member
    Join Date
    Nov 2000
    Posts
    16

    random rotation game

    hello, im new to making games...

    im trying to set up a game that is like roulet. the user clicks on the chamber they want to load the bullet, then a button to spin it.

    when they click spin i want flash to splin the barrel and for it to slow down slowly and randomly. i would then set it up to detect if the chamber that is in the top position(ie the shooting position) is 'loaded' the perform an action...

    i imagine that i can set the rotation as

    setProperty("barrel", _rotation, random(360));???

    or maybe i should make the figure random(3600)?? - this way it would 'spin' more? but this simply moves the barrel to that position, it wont spin it? right?

    so how would i effect the speed or spin? to slow it down as the momentum of the barrel slows down?

    anyhelp would be much appreciated,

    cheers,

    david*

  2. #2
    avatar free
    Join Date
    Jul 2002
    Location
    UK
    Posts
    835
    Hey - mbenney and i helped you (i hope ) in your identical post in the games forum.

    Please either

    1) don't cross thread

    or

    2) put a quick note saying it's sorted out elsewhere, so as not to confuse, waste peoples time etc,

    cheers.
    jonmack
    flash racer blog - advanced arcade racer development blog

  3. #3
    Junior Member
    Join Date
    Nov 2000
    Posts
    16

    sorry!

    oops! i didnt mean to post here then forgot about it! sorry...

    will bear that in mind for the future, and thanks for the help!

    david*

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