sipp Posted June 30, 2014 Share Posted June 30, 2014 Hello I making my owe game in Phaser right now. What I want to do: There shell be a door that only opens if the player stands on a button or pushes a box on that button. And close again if nothing stands on the button any more. Obviously the door shell no be passable unless it is open.. and there is he problem. I tried to make the door a spritesheet and give if a different frame depending on if it is open or closed. But I cannot make it collide whit the player for only one frame of a spritesheet and not the other. I also tried to put a groupelement under the door and make the player collide whit this groupelement but somehow the player still walks thru it. The other thing i tried was to make the open door a part of the background and move the closed door away when the button is pushed and back when the button is not pushed. But the closed door is doing weird things: jumping away and back all the time as long as the button is pushed. And if the player moves from the button the door either continues to jump away and back or it is open or closed.(its just random) Can someone help me? sorry for my English it kind of sucks. (I am working on it) Link to comment Share on other sites More sharing options...
Recommended Posts