Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Moza on April 09, 2014, 07:58:34 PM

Title: Major framerate drop with falling platform
Post by: Moza on April 09, 2014, 07:58:34 PM
Hi all,

I'm currently making a simple 2D platformer and I am having a little problem in implementing a simple falling platform mechanic that isn't too heavy on resources. Currently when i have 2 of these platforms next to each other and it requires the player to jump from one to another the framerate drops from 60fps to as low as 13fps.

I have tried multiple methods of creating that mechanic from adjusting the gravity scale once you trigger or collide with the platform, but am currently using the set kinematic 2d action where it turns the setting to off after a wait period of 0.5 seconds, making the platform fall.

Is there any other method possible that wouldn't hit the framerate so hard? Thanks in advance.
Title: Re: Major framerate drop with falling platform
Post by: Lane on April 14, 2014, 07:40:43 AM
It usually means that a state is looping through an event repeatedly.

Can you provide some screenshots of the FSMs doing stuff around the problem area?