playMaker

Author Topic: Major framerate drop with falling platform  (Read 1364 times)

Moza

  • Playmaker Newbie
  • *
  • Posts: 8
Major framerate drop with falling platform
« 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.

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Major framerate drop with falling platform
« Reply #1 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?
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D