playMaker

Author Topic: Round up a transform position [SOLVED]  (Read 1185 times)

ItzArranT

  • Playmaker Newbie
  • *
  • Posts: 45
Round up a transform position [SOLVED]
« 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?

« Last Edit: June 23, 2017, 01:33:44 PM by ItzArranT »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Round up a transform position
« Reply #1 on: June 22, 2017, 08:47:37 PM »
Hi.
On the Ecosystem you can find an action called 'Float Round'
You can try that one :)

ItzArranT

  • Playmaker Newbie
  • *
  • Posts: 45
Re: Round up a transform position [SOLVED]
« Reply #2 on: June 23, 2017, 01:34:16 PM »
Thanks for the help djaydino- really appreciated :)