Skip to main content
GameDev.net gamedev.net
🔒 Locked

What's up with my program?

Started by wannabean333 Jul 10, 2004 at 7:58 PM 1 replies 500+ views
Original Post
wannabean333
wannabean333
I'm using directdraw loading values into a 2d array and drawing the corresponding tile based upon the camera location. Here's what's happening: When the furthest column to the right is showing, it crashes at certain camera Y values such as 380, 1160, and several others. Here's some factors: When I take out the call to draw the tile in the loop, it doesn't crash. It only crashes when i do a function with the tile object of mine. For example: g_tile[g_map[map_x][map_y]].Draw_Tile(), g_tile[g_map[map_x][map_y]].Process() or any other function that uses the tile object. What could be causing this?!? thanks for the help
alnite
alnite
I suspect it's pointer problem. Maybe you didn't initialize the array properly?

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.