TeamPhotoshop
Reviews, updates and in depth guides to your favourite mobile games - AppGamer.com
Forum Home Latest Posts Search Help Subscribe

Flash RPG hitTest Problems

Page: 1 Reply
Oct 24th 2003#126135 Report
Member since: May 24th 2003
Posts: 212
I'm making an RPG in flash (havent we all...)

it's in 2*1 isometric view (like habbo hotel)

and i have a problem;

I have one layer with the picture of the item and another with the box at the base of it for the character to hit it and stop.

[The object is like a diamond]
I can make him hit the object and stop fine. But because u need to make the hitBox a symbol/Instance (to give it an instance name) it cuts the corner off and makes the corners transparent.

which means you hit them when walking by. :(

help!
Reply with Quote Reply
Oct 24th 2003#126141 Report
Member since: Mar 18th 2001
Posts: 1604
can you post an example image or give a bit more info? i'm not quite with you from your description...

chris
Reply with Quote Reply
Oct 24th 2003#126145 Report
Member since: May 24th 2003
Posts: 212
yeah sorry i was going to then got side tracked;

HitTest

bright green shows th picture border and where character hits

dark red box shows where i WANT the hitTest to be.

:(
Reply with Quote Reply
Oct 24th 2003#126155 Report
Member since: Mar 18th 2001
Posts: 1604
k, that makes much more sense try just drawing a diamond-shaped area for your hit area, don't see why it wouldn't work. cool stuff btw, i'm interested to see the final product on this.

chris
Reply with Quote Reply
Oct 25th 2003#126265 Report
Member since: May 24th 2003
Posts: 212
well that's the thing;

when i draw the diamond - which i did, it'd be fine.

But when you make that shape a Instance flash has to draw a boudary around it (green line) and the hitTest checks the boundary not the shape :(

[ www.re-fresh.tk (others > RPGame)
-for info on the RPG so far including problems faced and areas being designsed ]
Reply with Quote Reply
Page: 1 Back to top
Please login or register above to post in this forum