Ok so I got my custom movement working right. But there is one more problem , when his foot detector overlaps a backdrop, the gravity stops fine, and he stays on top of the ground. But now When I test his foot detector on an active object, the simply floats slowly down into the object even though I put code to stop that. Here is my code:
Gravity stopping for backdrops:
(Note: the main char's gravity is used for all of the detectors, so the detectors follow the character in the same spot the whole time.)
On loop "grav" + "Foot Detector" is overlapping backdrop = Stop loop "grav" + Set Gravity to 0 (this works fine)
Gravity stopping for collision on active object:
On loop "grav" + "Foot Detector" is overlapping "Active 8" = Stop loop "grav" + Set Gravity to 0
See, its the exact same test as overlapping the backdrops , but when his foot detector overlaps the active object, he just sinks below it.
And you may want to change the name of Active 8 to something that better describes what it does. It may seem like nothing, but I find it to be important overall.
Trust me on this one, don't make the mistake of having 50 objects with names like "Active Picture 14". It'll be much easier to go through later when your code is more complex.
--
"Del Duio has received 0 trophies. Click here to see them all."
"To be a true ninja you must first pick the most stealthy of our assorted combat suits. Might I suggest the bright neon orange?"
DXF Games, coming next: Hasslevania 2- This Space for Rent!