I hope this is in the right forum... So, I am testing my game-making skills in a black-and-white scroller that is in the process of being made. I have only one problem: How do I get the person to stop falling through the floor?! This is extremely annoying, and I like my projects to be perfect at best. (I know, this is sometimes called "perfectionism" and it is just as annoying as the problem I just described sometimes ) So anyways, should I make a sort of bumper sprite that goes to the bottom area of the person? If so (I can make it go to the bottom, obviously), what scripts should I use to prevent the person from falling through the floor?
Offline
Have you dabbled with velocity yet? Now could be a good time to learn if not.
You can try this:
This way is smooth, but your character may sink a small bit into the floor after falling. There are methods to correct this, though they make the script more complex.
If you want to see a near perfect collision engine (with no sinking), you can look at and study this project: http://scratch.mit.edu/projects/Kileyme … est/872391
Offline
One of the best platforming engines on the site can be found here: http://scratch.mit.edu/projects/RHY3756547/845502
This uses no color detection, so it'll definitely work for you! All you need to do is import the Player sprite into your project, then copy its scripts into your character. Also, make sure you have a sprite called "Level" so it knows what's solid and what's not.
Offline