Hello guys, I am making a game and i’m having a hard time scrolling the world without my collisions being muddled up.
container = new Sprite();
addChild(container);
container.addChild(ground);
container.addChild(character);
container.x = -character.x + stage.stageWidth / 2;
After implementing the code I ran the game to find this.
I add ground to the container. Inside ground is another movieclip with an instance name (bottom), and i test collision between player’s feet and ground.bottom
Can someone help me please.
P.s sorry for the second image, I don’t know how to remove, thank you);