I've been trying to recreate Super Mario Bros. in Construct 2 for the past few months. So far progress has been going well, (albeit at a very slow pace), however I've run into a bit of a problem.
For the life of me I cannot figure out what's wrong this code. Pretty much everything works fine, except for one thing. For context - In Super Mario Bros. when you stomp on a Koopa it goes into it's shell - everyone knows that. Here's the thing that's messing me up though, if you Jump on a Koopa when it's in its shell:
1. the Player does not bounce off of it.
2. The shell begins to go into its "moving" state in a random direction. (Left or right)
I've tried a lot of things to get this right but none of them are working. Basically either 1 or 2 don't work depending on how the events are formatted. For example if I moved one one of the events up then Mario will bounce of the shell when it's standing still and it *will* move. However if I were to move them a bit further down then Mario will jump on the shell and he won't bounce off it, but it won't move either.
I've attached my code below in case there's anything you guys can see that I can't.