L
lord_berto
Guest
Ive been stuck on this problem for a while.
Basically its the image angle.
my game is a mobile resolution of 180x320
I have codes in my game that will stretch out everything in the game to fit the display size.
image_xscale=global.gamescale
image_yscale=image_xscale
view_wview=180*global.gamescale
etc
etc...
(at the time i didnt know anything about application surface)
(Now to the problem) The game for some reason when i use image angle, The sprites become distorted.
at 0 degrees the image displays on its proper scale. as the angle increase (45degrees) the image starts to skew itself, when it gets to 90 or so the image is completely flat/gone, until it starts working itself to 180,
I cannot get my head around how to fix it. Ive tried
image_xscale=global.gamescale*(dcos(image_angle)+(dsin(image_angle)))
I know it has to be somewhere around the lines of here.... it just cant fix it.
example below of what seems to happen VVVV
Basically its the image angle.
my game is a mobile resolution of 180x320
I have codes in my game that will stretch out everything in the game to fit the display size.
image_xscale=global.gamescale
image_yscale=image_xscale
view_wview=180*global.gamescale
etc
etc...
(at the time i didnt know anything about application surface)
(Now to the problem) The game for some reason when i use image angle, The sprites become distorted.
at 0 degrees the image displays on its proper scale. as the angle increase (45degrees) the image starts to skew itself, when it gets to 90 or so the image is completely flat/gone, until it starts working itself to 180,
I cannot get my head around how to fix it. Ive tried
image_xscale=global.gamescale*(dcos(image_angle)+(dsin(image_angle)))
I know it has to be somewhere around the lines of here.... it just cant fix it.
example below of what seems to happen VVVV
Attachments
-
18.7 KB Views: 13