GameMaker {SOLVED} Object going through a solid

I have updated my game to GMS2 and and have found a small bug that has crept in, when I move my sprite I get blacked by solid walls (collision mask is the full 32*32 solid sprite on both sprite and wall object).

The bug is that I cannot move into a wall EXCEPT if I move DOWN the screen, and then I walk into the wall but cannot move from there in any direction :( And no I did not have this bug in the old version :(

UPDATE : The collision mask had been altered slightly so I put it back to the sprite of the parent; now my sprite can't open the exit door which isn't a wall object!!

James

Code:
if(!place_snapped(32,32)) {exit;}
    else
    {
        //The code below is our movement code
        hspeed = keyboard_check(vk_right)-keyboard_check(vk_left);
        vspeed = keyboard_check(vk_down)-keyboard_check(vk_up);
        if(hspeed != 0) vspeed = 0;
        speed *= 4;  //Give the character a speed of 2
        if(speed != 0)
        {
            image_speed = 0.25;
        }
        else
        {
            image_speed = 0;
        }
        if(place_meeting(x+hspeed,y+vspeed,obj_wall)) speed=0;
    }
 
Last edited:
I don't' know how to delete threads but I would delete this one if I could.

I have no idea what happened, I simply took some objects out of the room - and it worked properly, so I kept putting objects back in to see what was causing the problem - and every object has been placed back and it still works :(
 
Top