I'm trying to give the player a rectangular collision mask based on it's width and height, so I create_sprite_from_screen to get a sprite from the screen the size of the player.
I then set the collision properties of it, and applied it to the player object using mask_index, but it's not working.
Here's the exact code I'm using.
// The width (in pixels) of the player global.player_width = 30 // The height (in pixels) of the player global.player_height = 30 // Set the mask to the given width and height of the player mask_player = sprite_create_from_screen(x,y,global.player_width,global.player_height,0,0,0,0) sprite_collision_mask(mask_player,0,1,0,0,0,0,1,0) mask_index = mask_player
Any help would be appreciated.



Find content
Not Telling
