Search found 41 matches

by TheCollector
August 13th, 2019, 5:44 pm
Forum: Everything
Topic: Can someone help me set up SFML?
Replies: 9
Views: 5173

Re: Can someone help me set up SFML?

It works!!! Thank you. That helped a lot.
by TheCollector
August 10th, 2019, 5:41 pm
Forum: Everything
Topic: Can someone help me set up SFML?
Replies: 9
Views: 5173

Re: Can someone help me set up SFML?

Okay, so it is still for example, sfml-graphics-d. I was looking in the wrong folder, the bin folder instead of the lib folder where they are all named -d. So I have the right names in now, still doesn't work though. In the new video he's typing it, #include <SFML/Graphics.hpp> and when I type in th...
by TheCollector
August 10th, 2019, 5:26 pm
Forum: Everything
Topic: Can someone help me set up SFML?
Replies: 9
Views: 5173

Re: Can someone help me set up SFML?

I just found a video by the same guy I was watching earlier but for SFML 2.4. Going to try this too and see if anything helps get it going. Just to clarify, in the 'include directories' I updated the text from being the older version used in the video to SFML-2.5.1 and in 'additional library directo...
by TheCollector
August 10th, 2019, 5:01 pm
Forum: Everything
Topic: Can someone help me set up SFML?
Replies: 9
Views: 5173

Can someone help me set up SFML?

Okay, so I followed this tutorial for the old SFML (https://www.youtube.com/watch?v=Z6alClFOGoM) and I'm having some trouble. When I go to add additional dependencies under Input I don't know what file names to be putting in. There's two files for each one in the SFML/bin folder. For instance, there...
by TheCollector
August 6th, 2019, 3:03 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: 4128

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

I think some of the problems I was having had to do with the scope maybe? The else statement was working to return the reticle to white in one direction but not the other. It's not that I couldn't figure out how to get it to turn white again but I was hoping someone could explain to me why the else ...
by TheCollector
August 6th, 2019, 2:51 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: 4128

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

Sorry for the rephrasing. In between going through the tutorial I'm also trying to come up with some ideas and do some stuff on my own ( I may incidentally be trying to do stuff that's in the tutorial but that I just haven't gotten to yet- like the crosshair turning red. I'm not there yet but it's s...
by TheCollector
August 5th, 2019, 5:15 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: 4128

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

Nevermind. Tried out this instead and it worked: //Target enemy1x & enemy1y if (chx >= enemy1x - 55 && chx <= enemy1x - 51 || chy >= enemy1y - 3 && chy <= enemy1y + 5) { chg = 0; chb = 0; chr = 255; } if (chx >= enemy1x - 48 || chx <= enemy1x - 56) { chg = 255; chb = 255; chr = 255; } if (chy >= ene...
by TheCollector
August 5th, 2019, 2: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: 4128

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

I cleaned it up bc I had quite a bit of unnecessary code in there. Look at this instead: //Target Enemy1y if (chy >= enemy1y - 4 && chy <= enemy1y + 6) { EnemyTargetedY = true; } if (EnemyTargetedY == true) { chg = 0; chb = 0; chr = 255; } if (chy >= enemy1y + 6) { chg = 255; chb = 255; chr = 255; }...
by TheCollector
August 5th, 2019, 2:15 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: 4128

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

See, I'm trying to understand this better because I also coded the Y coordinates and they're not working right. No matter where I put the code for the reticle to turn back to white if you're not over enemy1y it doesn't run that code. It worked so easy with X. I tried doing basically the same thing o...