Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: G-Kaiser on August 30, 2018, 04:07:20 AM

Title: A Question About Get Position
Post by: G-Kaiser on August 30, 2018, 04:07:20 AM
I would like to know if there is an Playmaker Action that sends an event when the position changes by a set increment? I currently have a state set up where it gets the players position as a float. Then I use the action Set Float to Int and and use Int Change to send my event. I would like to know if there is a better way to do this as it is frame dependent. I would like like for it to be frame independent.


Thanks for any help
Title: Re: A Question About Get Position
Post by: jeanfabre on August 30, 2018, 07:29:57 AM
Hi,

yes, check this thread: http://hutonggames.com/playmakerforum/index.php?topic=10953.0

the action is on the Ecosystem as well: TransformHasChanged

Bye,

 Jean
Title: Re: A Question About Get Position
Post by: G-Kaiser on August 30, 2018, 11:14:08 AM
Thanks for the help but, I am looking for an action that sends an event when the game object the position increases or decreases by a certain increment. i.e. if the position increases by 1, then send an event. Is there an action like this?
Title: Re: A Question About Get Position
Post by: jeanfabre on August 31, 2018, 03:35:30 AM
Hi,

 nop, but I just made one up, on the ecosystem, called MovementDetection.

 let me know if it works for you.

Bye,

 Jean