Display MoreWith happygreenforgs improved version change the following.
Attack line 31: User clicks with left button on "Cracked Barrel"
Z order control is overlapping "Cracked Barrel"Now you can hit the barrel
Plus you can still jump over the barrel
I must say your improved example with the use of the layer object is very much the "IMPROVED VERSION"
The players new shadow is a bit annoying as it makes the players feet seem like they are blinking.
Sorry to say I do not know how to fix the infi-Jump.
Thank you for your time and help
To fix the infi-jump, just add an extra condition to check to see what the Z coordinates of the object is (test to see if it is equal to 0).