E
Erik
Guest
Hello all.
I have made several platform games using "gamemaker studio 2" in the past and
i have never had this problem before. Bitwise seems broken.
I have always used bitwise to align my object with the tileset grid. It would look something
like this.
y=y&~7
(Lining up with a 8 pixel grid by rounding off to the closest 8 pixels)
It seems like this is no longer an option. Earlier i got exact numbers divisible by 8. It was
pixel perfect and worked every single time. Very reliable.
I have been away from GMS2 for about 2 years and now when i return bitwise functions no longer
seem to function. When i perform the above operation will get values that are of by 0-1 pixel...?
Sometimes i get 120 as a result. But sometime the same bitwise will return 119 or even 119.5 (!?)
How is this even possible. It is supposed to drop all the 1s from the end.
This renders bitwise functions completely useless?
Is this something that has crept into newer versions of GMS2 because i never had this happen
before.
My old reliable platform-engine has been rendered useless now that the numbers come out
within a 1 pixel margin, instead of dead accurate. Seeing as GMS2 is most commonly used to create
2d pixel-based games this is a big problem. Pixel accuracy is vital. The results of the same mathematical
operation can not be allowed to differ with -1/+1 from time to time.
Has anyone else encountered this problem? Is this a known bug? A new bug?
As far as i know this was not the case in earlier versions.
I have made several platform games using "gamemaker studio 2" in the past and
i have never had this problem before. Bitwise seems broken.
I have always used bitwise to align my object with the tileset grid. It would look something
like this.
y=y&~7
(Lining up with a 8 pixel grid by rounding off to the closest 8 pixels)
It seems like this is no longer an option. Earlier i got exact numbers divisible by 8. It was
pixel perfect and worked every single time. Very reliable.
I have been away from GMS2 for about 2 years and now when i return bitwise functions no longer
seem to function. When i perform the above operation will get values that are of by 0-1 pixel...?
Sometimes i get 120 as a result. But sometime the same bitwise will return 119 or even 119.5 (!?)
How is this even possible. It is supposed to drop all the 1s from the end.
This renders bitwise functions completely useless?
Is this something that has crept into newer versions of GMS2 because i never had this happen
before.
My old reliable platform-engine has been rendered useless now that the numbers come out
within a 1 pixel margin, instead of dead accurate. Seeing as GMS2 is most commonly used to create
2d pixel-based games this is a big problem. Pixel accuracy is vital. The results of the same mathematical
operation can not be allowed to differ with -1/+1 from time to time.
Has anyone else encountered this problem? Is this a known bug? A new bug?
As far as i know this was not the case in earlier versions.
Attachments
-
135.1 KB Views: 6