This project has moved and is read-only. For the latest updates, please go here.

Side Scrolling Game

Sep 2, 2008 at 9:33 PM
Hi I am making a 2d side scrolling game. I am running into a problem my character falls through the floor and I am using a custom texture positioner thing. I need help with placing an object at the proper position.
Sep 2, 2008 at 9:39 PM
here is the code I want to replace the textures with solid blocks

zero is clear space
1,2,3 are blocks for the ground


if (Levels.level0[i, j] == 1)


spriteBatch.Draw(block, tilePos,






if (Levels.level0[i, j] == 2)


spriteBatch.Draw(redTileTex, tilePos,




if (Levels.level0[i, j] == 3)


spriteBatch.Draw(yellowTileTex, tilePos,