actor not in perfect position

guillefaceguilleface Member, BASIC Posts: 1,039

hey i have a little problem , i placed a actor "hero" on x=394 but its display position shows always 393.99996948242
so i have another actor to do something when hero x position=394 but it wont work because i cant get a whole number so idk what to do

Comments

  • bjandthekatzbjandthekatz Orlando, FlMember Posts: 1,375
    edited May 2014

    Change attribute self.position.x to ceil(self.position.x)
    This will round the attribute up to the nearest whole number.

  • guillefaceguilleface Member, BASIC Posts: 1,039

    ok thanks i will try that.

Sign In or Register to comment.