playMaker

Author Topic: Get Property (Every Frame) - it is common practice?  (Read 1126 times)

kaniballo

  • Playmaker Newbie
  • *
  • Posts: 10
Get Property (Every Frame) - it is common practice?
« on: October 07, 2017, 11:31:53 AM »
 Hello good Community
I have to test the property 'speed' every frame if it is greater than 0.What I'm doing is ...
Start -> Get Component, ... put component in variable (agent speed) - Jean Fabre mentioned somewhere that such component is caching.

... next state, ..

Get Property (every frame) -> (speed), ... test if speed is greater than 0,... etc.,..

 My question is, is it usually done - take property in every frame?. Is bad practice ,...and should it be avoided (i can't avoid,.. logicaly must test against 0).
Is there any technique to soften this cheak 60 times per second ?.
  Thanks in advance.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Get Property (Every Frame) - it is common practice?
« Reply #1 on: October 07, 2017, 02:19:41 PM »
Hi,
If you need to check something continuously you should use every frame.

When you use Get/Set Properties you should also use Linker wizard

And always check if there are actions available on the Ecosystem instead (which is better)