Im making myself a custom platform movement for the upcoming battlegrounds, but theres a problem. When the object lands on a platform, sometimes the object sinks down into it 3 or 4 pixels. Ive tried everything i could think of to fix this, and it still doesnt work. If anyone can help me with this i would really appreciate it, and add your name into the credits and make you a custom level or something for the game if you want. Im also having a problem making good gravity effects, if anyone want to help out with that also. You can give me instructions or i can send you what i have so far and you can tweak it yourself in MMF. Thanks a lot!!
"Actually sir, we found a tiny unicorn in your exhaust. It was jumping around poking holes in your gas tank." "Oh thank you I did not know that. A tiny unicorn? Wow."
people will tell you that the only way to not have this problem is to use fastloops, but that's not true. I have a CPM that doesnt sink, and I'm only using pure tgf. I'll rip apart the code and post it here.
You're right Shab, but the fastloop object does make the events neater. If you want to prevent the sinking the 'ye olde fashioned' way, just use the following event and copy it several times over:
Floor sensor is overlapping a backdrop
• Set Y of player to Y - 1
• Set Y of 'Floor sensor' to Y - 1
The number of times you copy and paste the event depends on how fast the player can fall, in pixels. If the player can fall a maximum of 10 pixels at a time, then you would copy and paste the event ten times. If you're not sure, just do some trial-and-error until you get a good result.
Good ideas,but ive already tried them and I am using fastloop. If anyone wants the code to check it out let me know.
"Actually sir, we found a tiny unicorn in your exhaust. It was jumping around poking holes in your gas tank." "Oh thank you I did not know that. A tiny unicorn? Wow."