A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: tileish question

  1. #1
    FunkNastyJim
    Join Date
    Nov 2001
    Posts
    21

    Angry tileish question


    hey im making a game where a car drives around but it actually stays in the middle and the background moves but my question is how can i do a hittest that will cover different spots but i dont want to make a hundred different movies, is there any way to do it with just one,
    wow that was confusing i'll give an example. The blue parts on this i want to be hittest areas but i dont want to write hittests for each one individually
    http://mattlarrabee.flashmaster.ru/test.swf

    imagine the blue parts moved with the background
    i'd be thankful for any help
    matt

  2. #2
    Member
    Join Date
    Nov 2001
    Posts
    97
    if you put them all in one movie clip, one hitTest will be enough.

  3. #3
    FunkNastyJim
    Join Date
    Nov 2001
    Posts
    21
    i tried that but then it makes a big box around the whole area and makes all of it a part, so even if you arent on the blue a hitTest will come up true

  4. #4
    Member
    Join Date
    Nov 2001
    Posts
    97
    tou shouldn't use the regular hitTest, but the shape hitTest. see the manual.

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