It's going to run the next line of code, no? and if the next part isn't true it should go to the else?
Why do you say feeling trolled? Are my questions too stupid or just too many of them? lol probably both. I do appreciate the help. I'm new to this and sometimes a second pair of eyes really helps.
Search found 41 matches
- August 5th, 2019, 1:29 pm
- Forum: Everything
- Topic: Why does this code get the reticle to change back to white when you're no longer over the specified line in one directio
- Replies: 12
- Views: 4123
- August 4th, 2019, 11:16 pm
- Forum: Everything
- Topic: Why does this code get the reticle to change back to white when you're no longer over the specified line in one directio
- Replies: 12
- Views: 4123
Re: Why does this code get the reticle to change back to white when you're no longer over the specified line in one dire
Do I need to literally code a portion so that when x equals greater than that number the reticle goes back to white? Shouldn't I just be able to do that with an else statement somewhere like I did for the left side to go back?
- August 4th, 2019, 10:47 pm
- Forum: Everything
- Topic: Why does this code get the reticle to change back to white when you're no longer over the specified line in one directio
- Replies: 12
- Views: 4123
Why does this code get the reticle to change back to white when you're no longer over the specified line in one directio
Why does this code get the reticle to change back to white when you're no longer over the specified line in one direction but not the other (works to the left but not to the right). if (chx >= enemy1x - 55) { if (chx <= enemy1x - 49) { InhibitEnemyTargetedY = true; EnemyTargetedX = true; } else { ch...
- August 4th, 2019, 10:37 pm
- Forum: Everything
- Topic: How can I program the reticle to turn red for the y coordinates?
- Replies: 6
- Views: 2437
Re: How can I program the reticle to turn red for the y coordinates?
So, I figured out what I was doing wrong. Simple error. Mixing = and ==
- August 4th, 2019, 5:26 pm
- Forum: Everything
- Topic: How can I program the reticle to turn red for the y coordinates?
- Replies: 6
- Views: 2437
Re: How can I program the reticle to turn red for the y coordinates?
Before I was trying it with bools and && signs so that when both values were true a bool would be set to true. The only problem is, even when one was supposedly false I kept getting a return of 1. Now, I'm having a similar problem with these bools. Well, I added the y coordinates (which right now I ...
- August 4th, 2019, 6:16 am
- Forum: Everything
- Topic: How can I program the reticle to turn red for the y coordinates?
- Replies: 6
- Views: 2437
Re: How can I program the reticle to turn red for the y coordinates?
I'm guessing because the else statement is there is why?
- August 4th, 2019, 6:00 am
- Forum: Everything
- Topic: How can I program the reticle to turn red for the y coordinates?
- Replies: 6
- Views: 2437
How can I program the reticle to turn red for the y coordinates?
I coded the x coordinates like this and it works: if (chx >= enemy1x - 55) { if (chx <= enemy1x - 49) { chg = 0; chb = 0; chr = 255; } else { chg = 255; chb = 255; chr = 255; } } else { chg = 255; chb = 255; chr = 255; } I've tried doing the same thing but with the y and it makes the reticle not tur...
- August 3rd, 2019, 3:13 am
- Forum: Everything
- Topic: How to get the reticle color to change to red when hovering over a certain pixel?
- Replies: 1
- Views: 1097
How to get the reticle color to change to red when hovering over a certain pixel?
I tried this with (but doesn't work bc I don't know what I'm doing =]) Enemy1x is a stick figure looking dude for which I did not code the color change for y coordinates yet bc it didn't work for the x. I would like the reticle to turn red when over the enemy. I probably don't need all these else st...
- August 3rd, 2019, 1:50 am
- Forum: Everything
- Topic: Can som1 tell me y my reticle doesnt have velocity on the first press once its reached the edge?
- Replies: 3
- Views: 1606
Re: Can som1 tell me y my reticle doesnt have velocity on the first press once its reached the edge?
ah. Thanks again albino.
- August 3rd, 2019, 1:32 am
- Forum: Everything
- Topic: Can som1 tell me y my reticle doesnt have velocity on the first press once its reached the edge?
- Replies: 3
- Views: 1606
Can som1 tell me y my reticle doesnt have velocity on the first press once its reached the edge?
Here's the code for the borders and the pixels. As it stands, you reach the edge and then you have to press the arrow key twice, once to get it to move a space then a second time to get it to move with velocity. No clue why it's doing this. Also, why does the + -17 work in B top border? //B right bo...