SuperMarioWorld icon indicating copy to clipboard operation
SuperMarioWorld copied to clipboard

Jump when falling

Open SqAtx opened this issue 10 years ago • 1 comments

When Mario falls and tries to jump, the sound plays anyway; it shouldn't.

It appears that the character's jump state can't go from ONFLOOR to FALLING. I did that because the character would be FALLING before being caught by the floor again, and then would go back to their previous state.

SqAtx avatar Aug 22 '15 20:08 SqAtx

Had a coordinate wrong by 1 pixel in goomba.rect..

Interestingly, after this: _sprite->setPosition(sf::Vector2f(_info.coordinates.left, _info.coordinates.top));

Then _info.coordinates.top + _info.coordinates.height and _sprite->getGlobalBounds().top + _sprite->getGlobalBounds().height were different.

The characters are still walking funny though.

SqAtx avatar Sep 25 '15 21:09 SqAtx