Hi, guys, I have a problem. I'm making a game similar to Into the Breach and at some fields, my characters coordinates have fractual numbers, which is causing some trouble. I try using round() to get rid of the fractual parts, but that doesn't seem to work. Here are some screenshots to help my explain this better:
In screenshot 1 the x value of one of the player characters has a fractual value.
I use round() in screenshot 2 to get rid of that, which seems to work.
Screenshot 3 shows the last time the x value is rounded.
After that step event, which takes place in a different object and doesn't deal with the player coordinates at all, we get to the draw events and the value is fractured again.
Does anyone know a proper way to deal with that? I hope I could explain it properly, but please let me know, if you have questions.
In screenshot 1 the x value of one of the player characters has a fractual value.
I use round() in screenshot 2 to get rid of that, which seems to work.
Screenshot 3 shows the last time the x value is rounded.
After that step event, which takes place in a different object and doesn't deal with the player coordinates at all, we get to the draw events and the value is fractured again.
Does anyone know a proper way to deal with that? I hope I could explain it properly, but please let me know, if you have questions.