Tetris shapes - collision detection?

Ask a Question related to Macromedia Flash, Design and Development.

  1. #1

    Default Tetris shapes - collision detection?

    I am considering learning flash (rather than using Visual Basic or Dark
    Basic) to write a Tetris variant... Any thoughts on this from games writers
    in here? I am investigating collision detection at the moment - any clever
    routines for doing this?

    I would appreciate any general advice or guidance to Flash games writing
    resources...

    Cheers

    Ric


    Ric Guest

  2. Similar Questions and Discussions

    1. Collision detection with dummy's?
      Hey all, me again! I have a massive 3D array of planes, but i only need to display the ones surrounding the mouse cursor, then the ones...
    2. collision detection
      Hi all! I'm trying to make a doom like game in the 3d engine of director, and have some collision questions. Well just one for now but theire will...
    3. 3d collision detection
      I have started a new thread since the last one got so long, i tried to create a simplified code for collision which i could use for each block and...
    4. Breaking Collision Detection
      Hi everyone, I was wondering if I could get some help with a problem I'm having. I have a character (which, in the code, is named pCharacter)...
    5. Collision detection Problem
      hai, I am using modelsUnderRay method to check my collision which has been described in the tutorial in the link below.... ...
  3. #2

    Default Re: Tetris shapes - collision detection?

    I did something similar in a school assignment - as far as testing for
    collision. This was done in java using a two dimensional array as a
    gamefield and two dimensional arrays for pieces. Then, you would test to
    see if a spot on the gamefield was occupied before you could move into the
    space. I can forward all of the relevant java files to you if you would
    like.

    I haven't done anything as far as testing for collision in flash... but I
    will try to think up some method....



    "Ric" <ricmillenspam@ntlworld.com> wrote in message
    news:nc0Nb.2946$JL4.20952@newsfep4-glfd.server.ntli.net...
    > I am considering learning flash (rather than using Visual Basic or Dark
    > Basic) to write a Tetris variant... Any thoughts on this from games
    writers
    > in here? I am investigating collision detection at the moment - any
    clever
    > routines for doing this?
    >
    > I would appreciate any general advice or guidance to Flash games writing
    > resources...
    >
    > Cheers
    >
    > Ric
    >
    >

    Amy G Guest

  4. #3

    Default Re: Tetris shapes - collision detection?

    > I am considering learning flash (rather than using Visual Basic
    > or Dark Basic) to write a Tetris variant... Any thoughts on
    > this from games writers in here? I am investigating collision
    > detection at the moment - any clever routines for doing this?
    >
    > I would appreciate any general advice or guidance to Flash games
    > writing resources... Cheers, Ric
    Have a look at Flashkit.com:
    [url]http://www.flashkit.com/search.php?term=tetris[/url]

    Best wishes, Martin ;) * [url]http://birdy1976.com/[/url] * ICQ# 237743398


    \Martin Voegeli, vom\ Guest

  5. #4

    Default Re: Tetris shapes - collision detection?

    Amy

    That's pretty much what I did in Amos basic (amiga) - it get's a bit
    complicated with 23 shapes and having to check for space below as well as
    left and right rotations of pieces...

    Thanks for your kind offer - but having done C++ for a while and not really
    getting on with it - I think I'll stay clear of Java - for now anyway :o)

    There is an excellent Flash tutorial here:
    [url]http://www.tonypa.pri.ee/tbw/index.html[/url] - includes collision detection...

    Thanks

    Ric

    "Amy G" <amy-g-art@cox.net> wrote in message
    news:PC0Nb.1484$AA6.752@fed1read03...
    > I did something similar in a school assignment - as far as testing for
    > collision. This was done in java using a two dimensional array as a
    > gamefield and two dimensional arrays for pieces. Then, you would test to
    > see if a spot on the gamefield was occupied before you could move into the
    > space. I can forward all of the relevant java files to you if you would
    > like.
    >
    > I haven't done anything as far as testing for collision in flash... but I
    > will try to think up some method....
    >
    >
    >
    > "Ric" <ricmillenspam@ntlworld.com> wrote in message
    > news:nc0Nb.2946$JL4.20952@newsfep4-glfd.server.ntli.net...
    > > I am considering learning flash (rather than using Visual Basic or Dark
    > > Basic) to write a Tetris variant... Any thoughts on this from games
    > writers
    > > in here? I am investigating collision detection at the moment - any
    > clever
    > > routines for doing this?
    > >
    > > I would appreciate any general advice or guidance to Flash games writing
    > > resources...
    > >
    > > Cheers
    > >
    > > Ric
    > >
    > >
    >
    >

    Ric Guest

  6. #5

    Default Re: Tetris shapes - collision detection?

    Thanks - looks like a good site!

    Ric


    ""Martin Voegeli, vom"" <MartinVoegeli@gmx.ch> wrote in message
    news:bu2sg6$d0u1r$1@ID-169229.news.uni-berlin.de...
    > > I am considering learning flash (rather than using Visual Basic
    > > or Dark Basic) to write a Tetris variant... Any thoughts on
    > > this from games writers in here? I am investigating collision
    > > detection at the moment - any clever routines for doing this?
    > >
    > > I would appreciate any general advice or guidance to Flash games
    > > writing resources... Cheers, Ric
    >
    > Have a look at Flashkit.com:
    > [url]http://www.flashkit.com/search.php?term=tetris[/url]
    >
    > Best wishes, Martin ;) * [url]http://birdy1976.com/[/url] * ICQ# 237743398
    >
    >

    Ric Guest

  7. #6

    Default Re: Tetris shapes - collision detection?

    Here's my Tetris FLA:
    [url]http://www.neave.com/games/tetris/tetris_fla.zip[/url]

    It uses arrays and things. (Helpful, aren't I?)
    Paul.


    Paul Neave Guest

  8. #7

    Default Re: Tetris shapes - collision detection?

    Paul

    Excellent site! Loved the photo's (Autumn Light is currently my desktop
    wallpaper)

    Your Tetris is the best online version I have seen; smooth, subtle sounds,
    nice effects - pieces identical to my Amiga version (PC version uses natural
    textures; wood, stone etc) My Amiga version (and the PC version in my head)
    has an objective - working through increasingly difficult screens by
    clearing existing patterns of squares, occasionally dropping large pieces
    (blue meanies on Amiga) and using 'Arkanoid' style tokens... It's a great
    game - I only want to write it on the PC so that I can play it - so quite
    happy if someone else writes it first...

    Arrays and things - yeah, that's no doubt what I will end up using - if I
    can overcome my laziness and get to grips with Flash - sigh.

    Thanks

    Ric


    "Paul Neave" <paul@neave.com> wrote in message
    news:bu664i$dqv0v$1@ID-122426.news.uni-berlin.de...
    > Here's my Tetris FLA:
    > [url]http://www.neave.com/games/tetris/tetris_fla.zip[/url]
    >
    > It uses arrays and things. (Helpful, aren't I?)
    > Paul.
    >
    >

    Ric Guest

  9. #8

    Default Re: Tetris shapes - collision detection?

    I just found this example. This is really cool. It is using blank
    movies(sentries) along a perimeter to detect collision. Very interesting.

    I have read through all of the script and must say that I am impressed.
    Very good approach to a tricky idea.


    "Ric" <ricmillenspam@ntlworld.com> wrote in message
    news:nc0Nb.2946$JL4.20952@newsfep4-glfd.server.ntli.net...
    > I am considering learning flash (rather than using Visual Basic or Dark
    > Basic) to write a Tetris variant... Any thoughts on this from games
    writers
    > in here? I am investigating collision detection at the moment - any
    clever
    > routines for doing this?
    >
    > I would appreciate any general advice or guidance to Flash games writing
    > resources...
    >
    > Cheers
    >
    > Ric
    >
    >

    Amy G Guest

  10. #9

    Default Re: Tetris shapes - collision detection?

    I guess I should post the sample huh....?

    [url]http://www.actionscript-toolbox.com/samplemx_bounceCollide.php[/url]


    "Amy G" <amy-g-art@cox.net> wrote in message
    news:FxlOb.4253$AA6.1586@fed1read03...
    > I just found this example. This is really cool. It is using blank
    > movies(sentries) along a perimeter to detect collision. Very interesting.
    >
    > I have read through all of the script and must say that I am impressed.
    > Very good approach to a tricky idea.
    >
    >
    > "Ric" <ricmillenspam@ntlworld.com> wrote in message
    > news:nc0Nb.2946$JL4.20952@newsfep4-glfd.server.ntli.net...
    > > I am considering learning flash (rather than using Visual Basic or Dark
    > > Basic) to write a Tetris variant... Any thoughts on this from games
    > writers
    > > in here? I am investigating collision detection at the moment - any
    > clever
    > > routines for doing this?
    > >
    > > I would appreciate any general advice or guidance to Flash games writing
    > > resources...
    > >
    > > Cheers
    > >
    > > Ric
    > >
    > >
    >
    >

    Amy G Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139