A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: [disc]ball Physics Engine

Hybrid View

  1. #1
    Senior Member
    Join Date
    Apr 2006
    Posts
    1,059

    [disc]ball Physics Engine

    Hey Everyone,

    Ive been really busy and havent posted much lately. but Im stumped and im sure its mostly just wrapping my brain around the info ive dug up

    Im trying to make a game simillar to lineRider(but with a ball instead of a sledder.) actually the only thing simillar is the physics involved. So what I need to do is have a ball with Gravity acting on it and it will hit slopes and calculate teh difference between its current vector and the new vector that results from the balls vector intersecting the slopes vector

    basically I need to figure out how to do everything(Gravity, Immovable Obstacles, bounce or Roll, moveable objects, etc. really Ive dug up most of these things in various Physics Tutorials, but i cant put it all together..)... Ive worked with vectors(i learned it all from TonyPa's Tut's) and multiple ball colisions but i havent messed at all with a ball colliding with a slope...

    or if anyone knows of a pre-built AS2 2d physics engine(like Fisix Engine but for AS2, or the Revive Engine(but again looking for AS2) ), basically ive found several, but theyre all for AS3


    anyway my brain hurts from trying to figure this out on my own so I figure I could ask you all for help. anyway I figure the least of you guys is miles ahead of me in terms of math concepts.

    Thanks

    Joran

  2. #2
    Senior Member
    Join Date
    Apr 2006
    Posts
    1,059
    just found this

    http://www.harveycartel.org/metanet/tutorials/

    will play with it tonight this might be just the thing :P

  3. #3
    Senior Member ozmic66's Avatar
    Join Date
    Oct 2005
    Posts
    472
    You can try using flade as it probably has most of the features you need, and you can add some of your own code for other functionality

    If you asked me though, I'd suggest moving to AS3 Not only because of Fisix, but because it's a much faster language which that allows for way more possibilities that AS2. It's also not that much of a leap from AS2, though it does have its learning curve.
    Pixelwave Flash-based iPhone framework
    iPhone Games: Flyloop | Freedom Run

    Twitter: Oztune

  4. #4
    Senior Member
    Join Date
    Apr 2006
    Posts
    1,059
    yeah but then id have to buy Flex :/ .... or the new version of flash when it comes out.(right? those are my only options to use AS3?) besides I think i found a AS2 engine that i can adapt to work pretty fast and AS2 will provide better backwards compatibility for people who are still runing player7

    or can i use just the flex SDK to use AS 3.0?

    how can i use AS 3 without sinking another 500 or so bucks
    [edit] PS . Flade is what i did find that ive adopted to fit my needs better(I just added images to the primatives/particles so I can represent them a little better for my needs and made some minor tweaks to it and it seem,s like it should work great.)

    [edit][edit] whoops ... or i can just use the free F9 preview to get AS3 :P
    Last edited by joran420; 01-30-2007 at 09:09 PM.

  5. #5
    Knows where you live
    Join Date
    Oct 2004
    Posts
    944
    You can download the flash 9 AS 3.0 preview for free from adobe.

    Missed your edit :/

    The math behind it isnt too hard. There is a full chapter on that kind of stuff in Flash MX Game design demistified.
    The greatest pleasure in life is doing what people say you cannot do.
    - Walter Bagehot
    The height of cleverness is to be able to conceal it.
    - Francois de La Rochefoucauld

  6. #6
    When in doubt ask Eager Beaver's Avatar
    Join Date
    Feb 2007
    Location
    Planet Earth
    Posts
    911
    Hey!
    Please see this movie published in flashkit.
    http://www.flashkit.com/movies/Scrip...1721/index.php
    Alll the best in your attempt to develop a game similar to Line Rider.
    Last edited by Eager Beaver; 02-25-2007 at 02:23 AM.
    <signature removed by admin>

  7. #7
    Senior Member
    Join Date
    Apr 2006
    Posts
    1,059
    Its actually alot different than linerider...but its a looooooong way from being anywhere near done.

    I was able to modify the Flade Library to work for me

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