Posted By
|
Message
|
wizkidweb
Registered 11/12/2007
Points 143
|
31st March, 2008 at 18:23:44 -
OK, I've been toying around with the Platform Movement Object and destructible terrain, and I have a primitive version of what my plan was. There are two main problems that are bothering me:
1) When I walk diagonally into an obstacle, my character starts floating up through the obstacle. Does anyone know how I can fix this? I've seen this glitch in a few other games, such as Nifflas's Knytt Stories.
2) I have a custom enemy movement, based on coordinates, and I am having trouble. I have detectors that would tell the enemy to turn around, but when it hits a detector after moving down destructible terrain, it remains underneath the background. How would I be able to fix this?
I tried using the Move Safely 2 Object to fix this, but I am having trouble using it...
Here's a file to help...
http://wizkidweb16.martinsonjewelers.com/uploads/futurecity.zip
When you do things right, people won't be sure you've done anything at all.
- God (Futurama)
|
DeadmanDines Best Article Writer
Registered 27/04/2006
Points 4758
|
31st March, 2008 at 20:30:12 -
I've not looked at ur file, cos it's v late here (note the txt speak, lol), but a few comments:
PMO has Move Safely built in, so if it's used correctly it SHOULD push u out of obstacles instantly.
Make sure you do this:
PMO: Test For Colisions
+ Player overlaps obstacle
--- PMO: Player overlaps obstacle
The whole 'test for colisions' thing MUST be first in all the conditions. In MMF2, it'll show up in red, cos it's a special 'trigger' condition. It can repeat many times as it needs to.
If you have another condition above it, that condition is run first. Since normal conditions run only once per frame, you would get a kind of 'floating' effect.
hope it helpeth.
191 / 9999 * 7 + 191 * 7
|
wizkidweb
Registered 11/12/2007
Points 143
|
31st March, 2008 at 21:05:36 -
In the example, I set that exactly as you put it. I have a pretty good feel for the Platform Movement Object (Sorry, PMO, not PGM ). If you look at my example you will find the problem.
When you do things right, people won't be sure you've done anything at all.
- God (Futurama)
|
|
|