The Daily Click ::. Forums ::. Klik Coding Help ::. Custom Platform Help
 

Post Reply  Post Oekaki 
 

Posted By Message

Wicked Studios



Registered
  25/10/2004
Points
  460
1st April, 2005 at 14:03:08 -

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."

Knudde (Shab)

Administrator
Crazy?

Registered
  31/01/2003
Points
  5125

Has Donated, Thank You!Clickzine StaffKlikCast StarVIP MemberGhostbuster!Dos Rules!I donated an open source project
1st April, 2005 at 14:26:06 -

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.

 
Craps, I'm an old man!

clwe



Registered
  17/12/2002
Points
  702
1st April, 2005 at 15:02:50 -

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.

Image Edited by the Author.

 
n/a

Wicked Studios



Registered
  25/10/2004
Points
  460
1st April, 2005 at 15:22:05 -

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."

Knudde (Shab)

Administrator
Crazy?

Registered
  31/01/2003
Points
  5125

Has Donated, Thank You!Clickzine StaffKlikCast StarVIP MemberGhostbuster!Dos Rules!I donated an open source project
1st April, 2005 at 16:12:41 -

I didn't copy the events over, hell when I made it, I was expecting the sinking, but it didn't happen. It was a nice surprise.

 
Craps, I'm an old man!
   

Post Reply



 



Advertisement

Worth A Click