|
||||||
|
||||||
Flash Tutorial - Collision Detection

Free
Tutorial
Step Seven: Testing the Movie
No Hit
If for example you speed (variable mySpeed) is 3 then the Player only exists
every 3 pixels. This animated effect looks like a smooth motion but in
fact it is not. If your wall is thinner than this the Player will simply
jump right over the top although it looks like the Player goes through
the wall rather than a jump. Even if you think your walls are thick enough
you may occasionally get this problem. This is because of the bounce plus
the speed plus the size of the Player plus the width of the walls all go
into the calculation that controls the movement of the Player. This can
occasionally give you unexpected results. If the hit does not work correctly
then the Player may simply go right through the walls.
To resolve this try the following:
Note: If you need to edit the Maze drawing it is no longer on the Main Stage but nested inside the Movie Clips. Keep double clicking on the drawing until it becomes selected.
|
Why not try out webwasp's new community. Meet new people, find friends in your area: Webwasp Mates & Dates
•
97664 visitors to this page since
Jan 04 •
|
|
|
All material on this site is protected under international copyright © law. DO NOT reproduce any material from this site without written permission. Please ask as permission is often granted.
|