E
electricstix
Guest
In the create event of my sprite (width 80, height 140) I use the following.
mask_index = spr_col;
spr_col is a small rectangle (width 40, height 40).
Gamemaker assigns it correctly and since I am using it for collision it does work. Except, where is it assigne to
exactly on my main sprite. So for example it is 40x40 is it assigned at x = 0, y = 0 or where and how can I change that to be at a different position.
I'm using it to create a small collision area at the feet of the player, so when the player reaches an edge, the collision is when the players foot collides. Otherwise for example the players head stops at the bottom of a table.
mask_index = spr_col;
spr_col is a small rectangle (width 40, height 40).
Gamemaker assigns it correctly and since I am using it for collision it does work. Except, where is it assigne to
exactly on my main sprite. So for example it is 40x40 is it assigned at x = 0, y = 0 or where and how can I change that to be at a different position.
I'm using it to create a small collision area at the feet of the player, so when the player reaches an edge, the collision is when the players foot collides. Otherwise for example the players head stops at the bottom of a table.