Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Lethn

Pages: [1] 2 3 ... 9
1
General / Re: How to make a button in SFML?
« on: November 27, 2013, 09:08:18 am »
Don't start again? I'm not starting anything, that's entirely up to you, I was just making a comment, if you want to take everything personally and get people involved in a flamewar that's entirely your fault.

2
General / Re: How to make a button in SFML?
« on: November 27, 2013, 07:35:33 am »
Yeah, I noticed you've only done text so far, but once you try doing images it will become difficult but if you know about switch statements already you should be fine so you can brush off my statements if you like :D I just noticed it in your code.

I mentioned it in my programming questions thread, I've also mentioned the SJLJ and DW2 on a seperate thread which helped out a lot of people who were struggling to even get SFML working on Codeblocks because of the conflicts with the package that was provided. There's not having the C++ knowledge which I freely admit to and I've been having a thorough look at switch statements ( I understand it better now yey! :) ) but equally you guys have simply made the mistake of not matching up the documentation with your tutorials.

In the documentation there is no usage of switch statements and break statements so how can someone new to SFML know that they're needed without just randomly putting them in? It's like putting up a tutorial and then leaving out certain bits then blaming the user when they can't understand why they need to do something that you haven't even mentioned but only you know about.

3
General / Re: How to make a button in SFML?
« on: November 26, 2013, 12:17:07 pm »
If I can speak out, I think you're also making the exact same mistakes I've been making with buttons, your events code should look like the tutorial here: http://sfml-dev.org/tutorials/2.1/window-events.php be sure to fix this up as well otherwise you'll have all sorts of problems loading image files etc. for your buttons.

I told you guys the documentation was confusing for noobs, it's like the whole SJLJ and DW2 scenario I went through but I could understand if it's meant to be like that on purpose to test your knowledge.

4
General / Re: Detect mouse button hold?
« on: October 29, 2013, 07:03:12 pm »
If you wanted to measure how long someone had the mouse button pressed surely you could do something like use sf::time right? I've been interested in this sort of thing myself because it makes games a bit more interactive.

I've seen fable 3 infamously manage to force you to hold down a button every time you want to make a decision and that even does a little circular progress bar to show how long it's being held down for so it must be possible.

5
General discussions / Re: Moderation reports
« on: October 28, 2013, 11:16:16 am »
yeah :( I know about botnets thanks to cryptocurrencies, people have been using them to steal coins off miners.

6
General discussions / Re: Moderation reports
« on: October 28, 2013, 08:31:36 am »
I hate and despise spammers. if I had the skill I'd code a robot designed specifically to hunt down other robots and blow up their PC's but unfortunately I'm just a noob >_< :D happy to help, I know how annoying running a forum can be which is why I only have a chat room.

7
General / Re: Lethn's Programming Questions Thread
« on: October 13, 2013, 04:06:33 pm »
I like games and I do like the C++ language :) I started learning C++ and SFML because games are all either made in game engines or just clones of one another now. Just recently I played Rome 2 Total War and Battlefield 4 and I was amazed at how despite the shortcuts these supposedly professional game developers took there were still huge problems even though they bought or had pre-made engines themselves. I also think part of the problem with using game engines is that a lot of the time they're inflexible and are only good at doing one job. My game ideas that I have planned for later will definitely require something more sophisticated.

So yeah, no matter how much I might bitch :P I'm still going to get through that book I hope :D.

8
General / Re: Lethn's Programming Questions Thread
« on: October 11, 2013, 10:40:26 am »
Yes! :D That said I will admit it looks like the only way I'm going to be able to become independent as a programmer is rely on the book like others have said so I'm still going to keep at it.

Every time though I read the damn book I end up wanting to do this, particularly when it comes to variables:

Didn't I post on this thread that one of my friends even felt sorry for me for having to read a book like this? Lmao :p

9
General / Re: Lethn's Programming Questions Thread
« on: October 11, 2013, 10:31:06 am »
Well the C++ primer book I was recommended on this thread is very good but it's so frustrating to read, I think I'm just going to have to devote some proper time studying it bit by bit :S, I've gotten through a chunk of it but I'm only about two chapters in.

10
General / Re: Lethn's Programming Questions Thread
« on: October 11, 2013, 10:04:42 am »
lol Guess I have more reading to do then :D the book I have was recommended but I still read from other sources.

11
General / Re: Lethn's Programming Questions Thread
« on: October 11, 2013, 09:51:16 am »
I get that, so why is it then that the documentation code shown for events was completely different to the events tutorial and I know this is what threw me off from making the code work which is why I posted it here.


 while (window.isOpen())
{
// Process events
sf::Event event;
while (window.pollEvent(event))
{
// Close window : exit
if (event.type == sf::Event::Closed)
window.close();
}

 

There's no mention of event.type here yet there is in the tutorial so no one unless they already knew the answer right away would have been able to realise that the tutorial was the correct piece of code to use or was that on purpose? I was working on this assuming I should follow the documentation, I know enough about events but I haven't read up on break and switch properly yet.

The reason I ask these kind of questions is because books and tutorials won't answer, a lot of times books and tutorials always make the mistake of assuming you already know bits and pieces or skip out sections no matter how well they're written which is why I use multiple sources despite anyone's objections and I made this thread.

So either this code was written wrong, or the event tutorial code is what you use when using more advanced techniques, or, Laurent did this on purpose to catch people out :P.

12
General / Re: Lethn's Programming Questions Thread
« on: October 11, 2013, 09:05:30 am »
I had to ask as well, are the case and break's really necessary? The code looks nice and solid but I was just wondering because they're only basic if/else functions ( yey, the website is helping! ) I would have thought break would only be necessary if you didn't want to use a ";" or something.

13
General / Re: Lethn's Programming Questions Thread
« on: October 10, 2013, 01:13:53 pm »
LOL sorry! wrong person, so much spam :D Edited :P

14
General / Re: Lethn's Programming Questions Thread
« on: October 10, 2013, 12:22:07 pm »
Well this website is much easier to read through than the book so I'll post up some basic console code soon if only to stop Nexus from being condescending and repeatedly accusing me of not understanding anything throughout this entire thread, but I'm sure he'll find a way even when I get to OpenGL.

Quote

Libraries are groups of functions that have been “packaged up” for reuse in many different programs. The core C++ language is actually very small and minimalistic — however, C++ comes with a bunch of libraries, known as the C++ standard libraries, that provide programmers with lots of extra functionality. For example, the iostream library contains functions for doing input and output. During the link stage of the compilation process, the libraries from the C++ standard library are the runtime support libraries that are linked into the program (this will be discussed further in lesson 1.4).


I actually understood that and I don't know why people didn't explain libraries that way to me before when I asked, so either this is a good website or people are all going to jump in now claiming it's bullshit. Thanks again for posting that Mosseman, I'm sure other people will find the website really useful too.

15
General / Re: Lethn's Programming Questions Thread
« on: October 10, 2013, 11:13:33 am »
Thanks, I'll bookmark that site and have a look ahh, hang on this looks a lot easier to read than that book because it's laid out properly on a webpage rather than just scanned to a .pdf so I might have an easier time with that and I can use the book for reference to cross-check everything so I know the site hasn't made mistakes.

I know what you guys have been saying with the console thing, I've done small bits with the console but god I hate it >_< it must be because I do art or something but I hate the idea of dealing with bland text which is why I'd rather struggle making multi-coloured text and interactive buttons that glow when you hover over them :P.

The console reminds me too bloody much of DOS >_< and DOS was something I always found irritating to use, I'll also be sure to use that code you posted Hatchet as reference and a starting point for everything else. What I don't understand is there seem to be conflicting bits in your code with the material I've been reading from, the only place where events are used in the way you used them are in the events tutorial but in the main documentation Laurent doesn't seem to use them. The same goes for that other piece of code I found for doing text based button work.

Pages: [1] 2 3 ... 9
anything