Kemerd Posted March 8, 2013 Author Share Posted March 8, 2013 I have my game and all, and everytime I try to move, it errors out on the directional blocking check line. Subscript 9.``` If isDirBlocked(Map.Tile(GetPlayerX(MyIndex), GetPlayerY(MyIndex)).DirBlock, direction + 1) Then```in modGameLogic. I already tried replacing the module with a fresh version, but that didn't work. Help? Link to comment Share on other sites More sharing options...
Daneta Posted March 8, 2013 Share Posted March 8, 2013 ubscript 9 whats that Link to comment Share on other sites More sharing options...
Ertzel Posted March 8, 2013 Share Posted March 8, 2013 He means subscript 9 is the error it brings up..Run your client through vb6 in debug mode and tell us what line the error relates to. This isn't something default with your engine so it has to be a change you've made and just telling us the base error number wont help us fix the problem at all… Link to comment Share on other sites More sharing options...
Kemerd Posted March 8, 2013 Author Share Posted March 8, 2013 Sorry… On meh phone. I'll post it up tomorrow. Thanks for all this help!EDIT: HEre ya go.``` If isDirBlocked(Map.Tile(GetPlayerX(MyIndex), GetPlayerY(MyIndex)).DirBlock, direction + 1) Then``` Link to comment Share on other sites More sharing options...
blkcrow Posted March 9, 2013 Share Posted March 9, 2013 make sure 0 <= GetPlayerX(MyIndex) <= Map.MaxX and 0 <= GetPlayerY(MyIndex) <= Map.MaxY Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now