playMaker

Author Topic: "Wait" command is framerate dependant?  (Read 1376 times)

Hasuman

  • Playmaker Newbie
  • *
  • Posts: 19
"Wait" command is framerate dependant?
« on: March 01, 2020, 12:49:35 PM »
Hi,

Currently working on a beat em up and happened to notice something odd. Because I want to make sure that the game works as intended even on computers without as great performance, I tried playing my game on 30 fps lock. I have a move that causes 14 hits (trigger events) rapidly, each trigger having only 0.05 second wait between them. With 30 FPS lock enabled, the game only receives 12 of those events. This made me wonder if using "wait" between events isn't the best idea, and if there are any alternatives to it. Basically each event in my player character is controlled with waits. Press button, animation starts with effects playing etc, wait a short moment, send next actions etc.

I know, it's a bit ridiculous timing, but on 60 fps it works perfectly. I don't really know any other way of doing a move like this, so those really short waits is necessary until I come up with a better solution for it.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: "Wait" command is framerate dependant?
« Reply #1 on: March 02, 2020, 01:57:09 AM »
Hi.
Many Times you can use 'Next Frame Event'


But did you test in build or editor?
As in editor you can have many delays due to other windows that are visible and updating.