How would you set up a 2d grid and check for a collision? Say if my character was 80x80 pixels, the wall was 10,60 and an enemy 20,20; how would you detect what was at a certain position on the screen? How would you know if it was an enemy or a wall? Whats the best way to do this?
eg Create an array ie Dim world(30,30). What would the 30 represent in terms of size? It wouldnt be pixels would it?
I have some code to move a man (with 12 frames of anim) around the screen and a bat flying up and down. I want to make a big level but want to create a level editor as it would be a lot easier to design the level. Ive seen some example code but its not step by step and i cant figure out the reasons behind it.
Many thanks for any help i may receive !!
eg Create an array ie Dim world(30,30). What would the 30 represent in terms of size? It wouldnt be pixels would it?
I have some code to move a man (with 12 frames of anim) around the screen and a bat flying up and down. I want to make a big level but want to create a level editor as it would be a lot easier to design the level. Ive seen some example code but its not step by step and i cant figure out the reasons behind it.
Many thanks for any help i may receive !!