Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: Ikke on November 25, 2017, 07:31:46 AM
-
Hi there!
Just started out with playmaker, and already bumped into my first problem.
I am trying to convert an int(in this example 3) to float. I would expect it to return 3.0, but it returns 0. Am I thinking wrong?
I added a screenshot of my debugging session as an attachment.
-
You put the int compare before the conversion. The actions will be executed from top to bottom in your state. Therefor, the state is exited before it had the time to convert the int. Put the "int compare" action at the bottom instead and it will work.
Cheers
-
Thanks a million! That was really stupid of me :) Anyway, moving on...