playMaker

Author Topic: Persistent variables?  (Read 2132 times)

PolyMad

  • Hero Member
  • *****
  • Posts: 545
Persistent variables?
« on: March 29, 2013, 01:10:48 AM »
I need to check collision on a body and check which is the previous frame and actual frame speed.
If I store the actual Get Speed value in a variable, how can I drag the same value to the next frame so I can compare it with the following Get Speed?

greg

  • Junior Playmaker
  • **
  • Posts: 68
Re: Persistent variables?
« Reply #1 on: March 29, 2013, 07:40:16 AM »
Maybe something to do with nextFrameEvent and updating the variable with that.

PolyMad

  • Hero Member
  • *****
  • Posts: 545
Re: Persistent variables?
« Reply #2 on: March 29, 2013, 01:03:42 PM »
Thank you!