Hi. I seem to be having trouble figuring out how to code it so that the throw-able daggers break when they hit a wall and then stop moving when they hit the ground.
The way I have it set up now is that when the dagger hits the wall, the dagger object is destroyed, then that creates two broken pieces of the dagger to be created, which then are supposed to bounce off the wall, then become static when they hit the ground.
The main problem here is that when the player throws the daggers (with X key) most of the time the daggers get stuck in the wall, which is a neat effect, but not exactly what I intended.
Any hints and help is appreciated.
I have provided an mfa file for your convenience. Please look at the frame LVL 4. The dagger collision code begins at line 45.
Ok easy fix.
First double click on the check mark here:
Then rearrange the actions like so:
The reason this works is because you need to set the movement first before you set the direction. If you set the direction first then change the movement the new movement's default directions will override your direction change action.
Originally Posted by -UrbanMonk- Ok easy fix.
First double click on the check mark here:
Then rearrange the actions like so:
The reason this works is because you need to set the movement first before you set the direction. If you set the direction first then change the movement the new movement's default directions will override your direction change action.
Ah, never realized that was the case. Thanks again UrbanMonk.