Jacquelinett Posted February 9, 2013 Author Share Posted February 9, 2013 Nevermind i see what i did wrong![:D](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/biggrin.png) Link to comment Share on other sites More sharing options...
Mal Posted February 9, 2013 Share Posted February 9, 2013 1) The code that "didn't run" is nested in an If/Then/Else conditional statement. It more than likely never ran due to your program never reaching that specific conditional branch, e.g. whatever the condition of your IF statement is the program is meeting it and never reaching the Else statement.2) After seeing/hearing/watching you deal with all of these very simple problems I'd like to suggest something that will pay off for you in the long run: Please stop doing whatever you're trying to do in C/C++ and go learn the language from the ground up. 99% of the problems you have had could be remedied by simply doing what I'm suggesting. I understand that you're probably wanting to be productive while learning, but in my experience someone else writing code and solving your problems for you doesn't really have that much value relative to you doing it yourself.Wish ya luck.PS/Edit: Hope I didn't come off as rude. I'm simply making a suggestion that may benefit you a lot more and that may speed up your overall progress exponentially since you'll have a better understanding of the logical flow of a program by way of learning the language. Link to comment Share on other sites More sharing options...
Marsh Posted February 9, 2013 Share Posted February 9, 2013 Yea like bud said the top of your code has a else. So what is the if? Are you sure its not meeting the requirements? Link to comment Share on other sites More sharing options...
Jacquelinett Posted February 9, 2013 Author Share Posted February 9, 2013 > 1) The code that "didn't run" is nested in an If/Then/Else conditional statement. It more than likely never ran due to your program never reaching that specific conditional branch, e.g. whatever the condition of your IF statement is the program is meeting it and never reaching the Else statement.> > 2) After seeing/hearing/watching you deal with all of these very simple problems I'd like to suggest something that will pay off for you in the long run: Please stop doing whatever you're trying to do in C/C++ and go learn the language from the ground up. 99% of the problems you have had could be remedied by simply doing what I'm suggesting. I understand that you're probably wanting to be productive while learning, but in my experience someone else writing code and solving your problems for you doesn't really have that much value relative to you doing it yourself.> > Wish ya luck.> > PS/Edit: Hope I didn't come off as rude. I'm simply making a suggestion that may benefit you a lot more and that may speed up your overall progress exponentially since you'll have a better understanding of the logical flow of a program by way of learning the language.but the first 2 statements inside the else run, only the loop itself doesnt run.And no i dont take it as rude. Link to comment Share on other sites More sharing options...
Marsh Posted February 9, 2013 Share Posted February 9, 2013 for (int l = 0; l < 12; l++){for (int t = 0; t < maxxy; t++){The first one should run fine. The second one might not run if maxxy is 0 or a negative. Link to comment Share on other sites More sharing options...
Jacquelinett Posted February 9, 2013 Author Share Posted February 9, 2013 > for (int l = 0; l < 12; l++)> > {> > for (int t = 0; t < maxxy; t++)> > {> > The first one should run fine. The second one might not run if maxxy is 0 or a negative.I just realized im a dumbass who failed at using debugger .____________.but i guess i figure out why but now i have a new problembut it fine i guess xDtime to work on fixing bug Link to comment Share on other sites More sharing options...
Marsh Posted February 9, 2013 Share Posted February 9, 2013 RememberF5 goto next breakpointF10 Step over (Goto next line)F11 Step into function (If its a function or a call of any kind it will go into it) Link to comment Share on other sites More sharing options...
Jacquelinett Posted February 9, 2013 Author Share Posted February 9, 2013 Updated the main post. Link to comment Share on other sites More sharing options...
Marsh Posted February 9, 2013 Share Posted February 9, 2013 Every layer will draw on top of the other layers yes. So you will have to use transparent tiles to test if its working, Or just draw 1 layer at a time to see if they are working. Link to comment Share on other sites More sharing options...
SawQuart Posted February 10, 2013 Share Posted February 10, 2013 Please don't delete the OP. I now have no idea what this topic was about and nobody else will be able to get help about the same problem. It's really annoying. 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