-
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
-
if you put them all in one movie clip, one hitTest will be enough.
-
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
-
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|