Legacy GM [SOLVED] How do I make the Mask not move, when the object uses image_angle?

Dr_Nomz

Member
I have a character that looks all around via the mouse cursor, but because of how game maker works, this causes issues when looking around while hugging walls.

So I figured just changing the mask would fix it, right? But no, the mask turns with the character.

That said, how do I make the mask stay perfectly STILL while turning, but still moves with the player?
 

CloseRange

Member
you can't use image_angle.
chage it to just angle and do this in the draw event:
Code:
draw_sprite_ext(sprite_index, image_index, x, y, 1, 1, angle, c_white, 1);
 

Dr_Nomz

Member
Update: Works pefectly! Thank you again CloseRange. :D

One thing though, this right here:
angle=point_direction(x,y,mouse_x,mouse_y)

Needed for the step event, but doesn't "initialize the variable" even with "var" and whatever, it ALSO needs to be in the create event, which is a bit annoying. Any way to avoid this, will it cause problems, or should I just ignore it?
 
Top