The Daily Click ::. Forums ::. Klik Coding Help ::. Stuck on Platforms?
 

Post Reply  Post Oekaki 
 

Posted By Message

s-m-r

Slow-Motion Riot

Registered
  04/06/2006
Points
  1078

Candle
15th October, 2012 at 15/10/2012 15:41:55 -

Hello all--

TO SUM UP: I'm having issues with the player becoming stuck on vertically-rising platforms.

This engine is based off of DavidN's custom platform engine, with considerable modifications and add-ons. One thing not included in the original was the implementation of rising and falling platforms. I've been successful in this to some degree, but for some reason the player seems stuck when standing on top of a platform that's rising. When it's still and when it's descending everything is okay. But when the platform is going up, the player is stuck in place unless they jump.

You can download the MFA here:

http://www.let-off.com/software/create-destroy/platform_and_create-destroy.mfa

Things to note:
- the orange platforms are what I want the player to be able to move through. Touching the black blocks below the piledrivers while they're descending results in the player being squished. This isn't what I'm testing at the moment.
- to "block" the player from moving through the piledrivers, I set it so that the player's horizontal movement is set to 0 when they attempt to move into or through it. I suspect that this is the major problem but I've not been able to fix it yet while maintaining the cessation of movement.

If anyone can provide some clues or suggestions on how to allow the player to move across a platform while it's rising, please let me know. Thanks!

 
n/a

Chloe Sagal

under the influence of FUN

Registered
  19/02/2009
Points
  607

Orange
16th October, 2012 at 16/10/2012 23:07:00 -

Damn you foreach extention! I gotta go find it and then I'll see what's up.

If you're gonna go with extensions, you should use the platform movement object instead, it'll remove a bunch of headaches.

 
Patreon: http://www.patreon.com/chloesagal
Twitter: https://twitter.com/ChloeSagal

s-m-r

Slow-Motion Riot

Registered
  04/06/2006
Points
  1078

Candle
17th October, 2012 at 17/10/2012 13:49:12 -

D'oh!!!

Here's a link to the ForEach extension (I found it simpler than using fastloops):

http://www.clickteam.info/greyhill/rForEach/ForEachSetup.exe

I also use the Advanced Direction Object, I think:

http://www.clickteam.com/webftp/files/mmf2/Exts/MMF2ExtPack1.exe

 
n/a
   

Post Reply



 



Advertisement

Worth A Click