I now have a working, tweakable, fixable movement engine. Let me explain. After going through my backup tutorial files and not finding anything not "up to date", I reluctantly tried to make my own. Then I happened to remember an older example named "Ladders 2". It came with a duo abandoned open source pack from Ricky Garces.
After finding it, I looked through the code and started to copy its events. And what do you know, it works like a charm. Granted, there's a few things wrong with it. But nothing I can't work with and hopefully sort out. I should be able to upload it for testing. If anyone's interested. If it is open source. Then thank you much Ricky Garces. I'll have fun with this one. If not, then I'll have to learn how to use the PMO object. Not fun.
A couple problems:
Player stopped when all the doors were destroyed. Half fixed by adding invisible door.
Does not handle slopes. Will have to code that in.
When facing right and against a wall, the player refuses to jump. The player will however, jump against a left wall. Probably something to do with detectors.
It's just a bit too fast. I'll probably try to slow it down and smooth it a little.
That's all for now.
CYA's
(And again, thanks Ricky. Not trying to sound like a suck up.)
|