A Flash Developer Resource Site

Results 1 to 15 of 15

Thread: [MX04] [Help] Collisions: Round 2

  1. #1
    Junior Member
    Join Date
    Nov 2006
    Posts
    15

    [MX04] [Help] Collisions: Round 2

    I've been wondering how you do colissions for an art-based map, I've tried virtually everything I could find, but the program still refuses to acknowledge the existance of the walls.

    Here is the .fla, as I have trouble describing the actual problem.
    Attached Files Attached Files

  2. #2

  3. #3
    Junior Member
    Join Date
    Nov 2006
    Posts
    15
    When I try to open the file, I just get a "Unexpected File Format".

  4. #4
    M.D. mr_malee's Avatar
    Join Date
    Dec 2002
    Location
    Shelter
    Posts
    4,139
    you haven't even got any hit actions in there. How does the wall know its a wall?

    if(!world.hitTest(player._x, player._y, true)){

    //player movement code
    }
    lather yourself up with soap - soap arcade

  5. #5
    Truimagz.com everfornever's Avatar
    Join Date
    Sep 2006
    Location
    St. Louis
    Posts
    1,306
    who me malee?

    what version of flash are you using vista?

  6. #6
    Banned XareoX's Avatar
    Join Date
    Aug 2006
    Posts
    462
    everfornever that is realy good code but you commented on it to much =P
    i always used a longer way to do hittests not way longer but a bit longer thanks to you i saved bytes on my code thanks =).

  7. #7
    Truimagz.com everfornever's Avatar
    Join Date
    Sep 2006
    Location
    St. Louis
    Posts
    1,306
    yea I'm actually going to convert my website real soon...

    I know I'm not near the best flash coder on FK but I have been working on video/audio flash tuts, with commented fla's to go with it...

    Just the basics that I think everyone should know about. Like knowing the flash interface for one and the timeline and then coding as well.

    Hopefully I can get them in the knowledge base.

  8. #8
    M.D. mr_malee's Avatar
    Join Date
    Dec 2002
    Location
    Shelter
    Posts
    4,139
    i was referring to Vorta's fla
    lather yourself up with soap - soap arcade

  9. #9
    Banned XareoX's Avatar
    Join Date
    Aug 2006
    Posts
    462
    a bit off topic ever you would be realy good at writing tutorials because you explain what the code does in segments and its realy easy to userstand unlike other peoples.

  10. #10
    Banned XareoX's Avatar
    Join Date
    Aug 2006
    Posts
    462
    marlee ur code doesnt work for me mind posting an quick example fla??

  11. #11
    Junior Member
    Join Date
    Nov 2006
    Posts
    15
    Quote Originally Posted by mr_malee
    you haven't even got any hit actions in there. How does the wall know its a wall?

    if(!world.hitTest(player._x, player._y, true)){

    //player movement code
    }
    If I'm interpreting this right, the !world should be replaced with the name of the background clip, and the player. should be replaced with the name of the player clip, right? Or should I just copy and paste it as is?

  12. #12
    Truimagz.com everfornever's Avatar
    Join Date
    Sep 2006
    Location
    St. Louis
    Posts
    1,306
    how about absewring my question? what version of flash are you using?

    I have an entire code for you to use. You say you cant opne my file so your not using flash 8 then?

  13. #13
    Junior Member
    Join Date
    Nov 2006
    Posts
    15
    I'm using Flash MX 2004. I'm not sure if it's compatible with Flash 8 files.

  14. #14

  15. #15
    Junior Member
    Join Date
    Nov 2006
    Posts
    15
    It still doesn't work.

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