Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: ItzArranT on June 22, 2017, 05:40:50 PM

Title: Round up a transform position [SOLVED]
Post by: ItzArranT on June 22, 2017, 05:40:50 PM
I'm making a game where pixel-perfect positioning is extremely important.

When I move my main character (who travels in straight lines only) and it collides with a wall and consequently stops moving, sometimes the transform position is not an integer value- and I'm not sure why that's happening when all colliders are sized correctly.

Is there a way to round up this value to the nearest whole number?

Title: Re: Round up a transform position
Post by: djaydino on June 22, 2017, 08:47:37 PM
Hi.
On the Ecosystem (https://hutonggames.fogbugz.com/default.asp?W1181) you can find an action called 'Float Round'
You can try that one :)
Title: Re: Round up a transform position [SOLVED]
Post by: ItzArranT on June 23, 2017, 01:34:16 PM
Thanks for the help djaydino- really appreciated :)