|
-
Banned
Help me with hit tests
if u have seen some ove my games u will relise my hit tests are a bit off any 1 know a better action script code for hit tests?
-
Banned
doesnt matter i got a better 1
-
Relaxing
Problem with hit test is that it can miss if between frames
Any programming language is at its best before it is implemented and used.
-
KoolMoves Moderator
You can use a distance test, this works really well for round objects. I seem to remember reading a method using invisible boxes to define the hit area. Basically use invisible boxes and use hittest on the boxes rather than the visible object.
http://www.bretlanius.com/flash/bounce.html uses this method.
-
Banned
can u make me something with it to show a ball with 4 walls around it and the walls cant go passed the walls because the walls are keeping the ball in and you move the balls with the arrow keys i should understand it better cos i dont understand that script like that with all the text box's. and ty for helping me
-
Relaxing
 Originally Posted by XareoX
can u make me something with it to show a ball with 4 walls around it and the walls cant go passed the walls because the walls are keeping the ball in and you move the balls with the arrow keys i should understand it better cos i dont understand that script like that with all the text box's. and ty for helping me
I posted the wrong zip file but I do this with text boxes to help understand were my coding is in error. In colin Moock's on page 526 he explains this. You will have to explain better what you want though unless someone else understands.
Any programming language is at its best before it is implemented and used.
-
Banned
Ok i fixed my wall hit tests up but because of the script on the platform it stuffed that up but i fixed that there is only 1 more problem now and than is with objects like the bodys and health on my game there is a script that deletes the objects when u touch them or if a trap thouchs you it takes health of you but the problem with those it u can be 1cm away from the trap/items and they get deleted i want them 2 get deleted when u touch em.
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
|