J
Jahasaja
Guest
Hi all,
I just uppgraded to GM2 and most of the porting seems to have gone fine. However, I have one issue that I am not sure why it is not working.
to prevent the player to walk through enemies all the enemies have an parent object called obj_solid. obj_solid is a completely empty object.
in the player step event i have:
This worked well in GM1.4 however in GM2 it seems like it does not register the precise collision mask instead it is using a bounding box for the entire sprite even though all the enemies are using precise collision masks.
Thanks in advance for any help!
I just uppgraded to GM2 and most of the porting seems to have gone fine. However, I have one issue that I am not sure why it is not working.
to prevent the player to walk through enemies all the enemies have an parent object called obj_solid. obj_solid is a completely empty object.
in the player step event i have:
Code:
if ((h_move>0) && place_meeting(x+myspeed*h_move,y,obj_solid) and obj_solid.x>x)
or ((h_move<0) && place_meeting(x+myspeed*h_move,y,obj_solid) and obj_solid.x<x)
{
myspeed=0
}
Thanks in advance for any help!