Hello
Thanks for all your replies everyone and for the great help your all giving me to try to understand arrays better. I think I am going to be able to work it out now to get my map scrolling following my players movements and be able to draw different tiles in areas I want them.
To answer your question Cruis.In I am making a game somewhat based off of the arcade version of " Ikari Warriors " . If your not familiar with the game it is a top down viewed shooter/army guy type game that only scrolled on the Y axis and had some very good play that unfortunately wasn't copied too well to the home computer i.e. commador64 and other older type game systems. The arcade version sure was fun to play though.
My left and right code for the player is first a strafe with the right mouse button added, it just rotates the player to a new direction if only the arrow key is used. The strafe function wasn't a part of the original game but I thought I would add it because my version will be much faster then the arcade one and dodging bullets and such will be alittle easier with it.
Once again I really thank you all for helping me out with arrays, soon as I get some code together and test it I will post it and see what you all think of it. Originally I was stuck between coding the scrolling with either the array or the screen X/Y, but thanks to you all I now know I have to do it with both in order to do it correctly. And now I hope to be able to use more tiles to draw different features of the map without using drawimage to draw over my map and get that huge slow down I was experiencing. Thanks again for the great help everyone!
Thanks for all your replies everyone and for the great help your all giving me to try to understand arrays better. I think I am going to be able to work it out now to get my map scrolling following my players movements and be able to draw different tiles in areas I want them.
To answer your question Cruis.In I am making a game somewhat based off of the arcade version of " Ikari Warriors " . If your not familiar with the game it is a top down viewed shooter/army guy type game that only scrolled on the Y axis and had some very good play that unfortunately wasn't copied too well to the home computer i.e. commador64 and other older type game systems. The arcade version sure was fun to play though.
My left and right code for the player is first a strafe with the right mouse button added, it just rotates the player to a new direction if only the arrow key is used. The strafe function wasn't a part of the original game but I thought I would add it because my version will be much faster then the arcade one and dodging bullets and such will be alittle easier with it.
Once again I really thank you all for helping me out with arrays, soon as I get some code together and test it I will post it and see what you all think of it. Originally I was stuck between coding the scrolling with either the array or the screen X/Y, but thanks to you all I now know I have to do it with both in order to do it correctly. And now I hope to be able to use more tiles to draw different features of the map without using drawimage to draw over my map and get that huge slow down I was experiencing. Thanks again for the great help everyone!