Im making a basic platformer game and have run into a problem that Im having a hard time figuring out how to work out.
Im trying to have a scrolling game where there are various obstacles, such as boxes on the ground, and platforms in the air. The problem Im encountering is that I dont know how to properly use the physics engine to accomodate all of this with the camera following. The simplest approach Ive taken for the camera is to just have the world move behind the character, either having the ground act as a physics object which moves smoothly or as having something simple like world.x=world.x-5.
Using the second method(world.x-5) causes the physics to get all wonky and things arent where they’re supposed to be, obviously because that doesnt actually have any bearing on the physics itself but only the object. Using the first method, I dont know how I can have floating platforms because static objects dont seem to respond to movement, and given my current situation, I dont know how to bring them onto the screen. Kinematic objects react weirdly to a change in velocity and they dont seem to ever stop moving no matter what I try.
Any suggestions? Im totally baffled here. [import]uid: 67886 topic_id: 13045 reply_id: 313045[/import]