actor not in perfect position
guilleface
Member Posts: 1,014
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
Change attribute self.position.x to ceil(self.position.x)
This will round the attribute up to the nearest whole number.
Need Help? Email Me | Templates | Full Game Source Code
ok thanks i will try that.