A
Azurexis
Guest
Hello Game Maker Forum!
I have a small problem with the d3d transformation stuff. I try to draw a normal sprite with a certain transformation.
The sprite I want to draw is 35x34, and its origin is on 17x17.
I wrote the following code:
When the variable is 26 or lower the sprite gets displayed normally. However, if I raise the variable over 26, the sprite disappears. But if the variable is lower than -26 it disappears too.
When I change to origin of the sprite the values of where it gets displayed and where not seem to change also.
I ran out of ideas, and I really need this to work. Working with d3d_draw_wall doesn't work, because I want to work with a text/font here.
If anybody has any ideas about this I would be glad if you shared them with me!
Edit: Same thing happens when I change the second line to
or
d3d_transform_set_rotation_y(90);
I have a small problem with the d3d transformation stuff. I try to draw a normal sprite with a certain transformation.
The sprite I want to draw is 35x34, and its origin is on 17x17.
I wrote the following code:
d3d_transform_set_identity();
d3d_transform_set_rotation_x(90);
d3d_transform_add_translation(130, 130, variable);
draw_sprite(spr_something, 0, 0, 0);
d3d_transform_set_identity();
d3d_transform_set_rotation_x(90);
d3d_transform_add_translation(130, 130, variable);
draw_sprite(spr_something, 0, 0, 0);
d3d_transform_set_identity();
When the variable is 26 or lower the sprite gets displayed normally. However, if I raise the variable over 26, the sprite disappears. But if the variable is lower than -26 it disappears too.
When I change to origin of the sprite the values of where it gets displayed and where not seem to change also.
I ran out of ideas, and I really need this to work. Working with d3d_draw_wall doesn't work, because I want to work with a text/font here.
If anybody has any ideas about this I would be glad if you shared them with me!
Edit: Same thing happens when I change the second line to
d3d_transform_set_rotation_x(270);
or
d3d_transform_set_rotation_y(90);