There's several issues with your capx :
1/ you can't really know if the event is working, because your text is way out of screen at (70,446) when your character (an then the scrolling) is at about (880,3200). So you need to put your text and text_box in another layer with 0,0 parallaxe
2/ 10px is too short, your the distance between the hotspot of your character and it's boundaries are already greater than 10px.
I put < 60 instead
3/ the system distance() function doesn't do any picking. If you know you'll have only one closed door in all your layout it's ok. But if you want to put more than one, you have to filter each closed door with a foreach and do the distance check afterward.
Look at the capx. the order of event 23's conditions is important:
- first filter closed door
- next take each closed door one by one
- and then do the distance check on the door the foreach is on
http://dl.dropbox.com/u/23551572/C2/doorPicking.capx
1) Ah, you're right. Silly mistake ><. I've got it set up correctly in my project file, just not in the capx test file I linked too.
2) Good to know! Thanks.
3) Also good to know, I'll give it all a try. However, I want all closed doors to behave the same anyway, so isn't this potentially a non-issue? At any rate I've give it a try with the fixes you've suggested.
Thanks again, I'll try it myself and let you know how it works out :)
Oh, and thanks for the fixed capx, works perfect!