Search found 17 matches

by SamCam
June 28th, 2020, 6:13 pm
Forum: Everything
Topic: Identifier "kbd" is undefined
Replies: 5
Views: 81

Re: Identifier "kbd" is undefined

Righto, Looks like you're using Chili's old video series, but if you followed the link and downloaded the current engine from the link in the video description you've probably downloaded the newer (2016) framework. In which case you may find a lot of things that Chili does wont work right for you. T...
by SamCam
June 28th, 2020, 11:42 am
Forum: Everything
Topic: Identifier "kbd" is undefined
Replies: 5
Views: 81

Re: Identifier "kbd" is undefined

Hey, welcome!

Is your code looking something like this?

Code: Select all

  if (wnd.kbd.KeyIsPressed(VK_LEFT))
    {
        x = x + 100;
    }
   
It's hard to say what your problem is without a little more detail.
by SamCam
June 10th, 2020, 4:12 pm
Forum: Everything
Topic: SFML Project help (or FML project... at the moment)
Replies: 8
Views: 189

Re: SFML Project help (or FML project... at the moment)

That's cool, I've been doing a few of those little coding challenges they have on hackerrank, which seem to do just that. I can see how automated testing would be useful. As the man himself once said, if you can give the user a way to get their dick caught in a ceiling fan they'll do it. I'm still a...
by SamCam
June 9th, 2020, 11:16 pm
Forum: Everything
Topic: SFML Project help (or FML project... at the moment)
Replies: 8
Views: 189

Re: SFML Project help (or FML project... at the moment)

Haha, its a minefield there's probably no correct solution just what works well at the time. I get excited when things are all moving forward but then it feels like a drag to have to move all of the code around and make it play together again. Probably a moderation of excitement and less wasting tim...
by SamCam
June 8th, 2020, 9:36 pm
Forum: Everything
Topic: SFML Project help (or FML project... at the moment)
Replies: 8
Views: 189

Re: SFML Project help (or FML project... at the moment)

Hey, thanks once again, I ran your changes, had a couple of issues but solved them. I think I was probably overthinking things a bit which let to me using unique_ptr which is unnecessary as you say. From now on I'm just going to try and write classes to begin with and not end up with a load of stuff...
by SamCam
June 7th, 2020, 9:46 pm
Forum: Everything
Topic: SFML Project help (or FML project... at the moment)
Replies: 8
Views: 189

SFML Project help (or FML project... at the moment)

Hey guys, I'm looking for a little help with this project/demo I started building with SFML (sorry Chili engine) The aim of this little project is to be able to type in some text to a screen from a remote network source, the text should appear 'live' so you can see the remote users train of thought,...
by SamCam
May 30th, 2020, 11:26 am
Forum: Everything
Topic: Vector of enemies, problems with a surface?
Replies: 4
Views: 198

Re: Vector of enemies, problems with a surface?

Many thanks, just getting an understanding of the issue is really helpful. I'll be trying to take this little project forward using some of the techniques described in the later intermediate series videos. For example, I will want some different enemies to inherit and extend the enemies functionalit...
by SamCam
May 28th, 2020, 7:13 pm
Forum: Everything
Topic: Vector of enemies, problems with a surface?
Replies: 4
Views: 198

Re: Vector of enemies, problems with a surface?

Also, I thought I might try posting a question on Stack Overflow about this, better described for all the peoples who aren't working with the Chili Framework. But people there seem sooo harsh and a little esoteric if not harsh, any thoughts? For example people will say "DUPLICATE QUESTION" and then ...
by SamCam
May 28th, 2020, 6:53 pm
Forum: Everything
Topic: Vector of enemies, problems with a surface?
Replies: 4
Views: 198

Vector of enemies, problems with a surface?

Hey guys, I was bimbling along quite happily trying to create this Space shooter type game, lots of inspiration taken from Project Twin. I have managed to make a vector of animated 'laser' sprites but despite the code being pretty darn similar for the actual enemies, I keep crashing hard. I think th...
by SamCam
April 11th, 2020, 7:06 pm
Forum: Everything
Topic: Intermediate 4 Homework Help
Replies: 10
Views: 1072

Re: Intermediate 4 Homework Help

Thanks so much, just sat down to get in a couple of hours coding, I'll be working through your pull request first!

Thanks again for your help, I think I owe you more than a couple of beers now.