A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: how do I.........

  1. #1
    Member
    Join Date
    May 2004
    Location
    Ohio
    Posts
    64

    how do I.........

    how do you make there be like...gravity, and have platforms for a dude to jump on?(if you're controling him with the arrow keys or something) Do you know what I mean?
    ~Julia~

  2. #2
    Senior Member
    Join Date
    Aug 2003
    Posts
    438
    You will need a whole engine for this. Its not just a simple script. Try to use common sense and start out. I wont mind helping you, but doing it for you wont help you much.

  3. #3
    Member
    Join Date
    May 2004
    Location
    Ohio
    Posts
    64
    what do you mean?
    ~Julia~

  4. #4
    Senior Member
    Join Date
    Aug 2003
    Posts
    438
    There is no such thing as an "AddGravity();" script. Gravity requires multiple hitTests, variables, and maybe some arrays.

    Walking, is the same thing. A basic 4-way direction system is probably 20 lines long. If you want it animated, add a few more to that total.

  5. #5
    Flash Enthusiast? thecombat's Avatar
    Join Date
    Aug 2003
    Location
    New Jersey
    Posts
    305
    look in many peoples signatures they have many link to "platformers" thats what your looking for... Take a look at some peoples code and try to base yours off of that...






    [off topic]
    whoa i havent posted here in years, geuss that damn camper strike game by barrax god me hooked on counter strike =p

  6. #6
    Senior Member
    Join Date
    May 2002
    Location
    Sioux Falls, SD
    Posts
    1,155
    a file i have had laying around for several years

    http://www.angelfire.com/sd2/flashstuff/jump.html

  7. #7
    Member
    Join Date
    May 2004
    Location
    Ohio
    Posts
    64
    thanks!
    It work whenever I just copy and paste all the script into whatever. But I would really like to know what you're doing, cuz that a/s looks really confusing.... Or maybe if you know of a tutorial or somthin..
    ~Julia~

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