good day flashers I was wondering how do i let my character seat on a chair with a button,I was able to make the character seat using hitTest upon hitting the chair but my character was not aline to the chair please could somebody give me an advise in how to do this.
It's always good to shaire with common interest thank you
maybe within your hittest detection place the character at a pixel perfect predefined spot so that he aligns perfectly?
If that looks chunky make him otherwise tween to that location
I thinks it's not the best way to use a hitTest in this problem cause the moment I hit the chair it will automatically seat. sorry if my explanation is not clear what would be the best way to let the character walk near the chair and as I hit the chair the player can click the chair and then the character can seat on it so there would be like a choice to seat or not to seat. If I use event listener is it possible or not.what kind of function or line of code should I choose
thanks for the hint hatu I was able to do it when the character hits the chair and I click it it can seat, but there's still one missing I can't get his but hit the target in the middle of the chair is there some sort or gravity or just to pull the character to the middle of the chair? can any one shed some light on this problem
I'm not sure if I understand what you mean renderhjs. what's a pixel hittest do you mean like hitting a object the way in shape like circle and what do you mean ("submovieClip with a shift")