Advertisement Jump to content


This topic is now archived and is closed to further replies.


Multidimensional Array problem

This topic is 6579 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Im pretty new to using multidimensional arrays larger than 2Ds. Im using a 3D one a look up table for getting the stats of enemy ships in the 2D shooter Im making. ive worked out how to initialise and declare it based on how it is done with 1D and 2D arrays, but I must be missing something because I keep getting syntax compiler errors when trying compile the following code.
			//==========PRESET AI ROUTINE CLASS OF SHIPS=======================//

			//cruiser Type


		},//end set AI routine class

		//=============PRESET DIR CLASS OF SHIPS================================

			//ship 1


Share this post

Link to post
Share on other sites
Why don''t you use an array of structures to do what your trying to do? Thats what I used for my 2d Shootem-up, it was very simple.

If you want to see an example from my code let me know your email address, i will mail you the relavant code.


Share this post

Link to post
Share on other sites
Dont worry problem solved. My syntax was right, I just didnt define my constants properly. Stupid errors, like most.

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!