Search found 80 matches

by Slidy
June 17th, 2018, 5:01 pm
Forum: Everything
Topic: my solutions
Replies: 52
Views: 18757

Re: my solutions

Some extremely talented hacker also made a solver for the bot, no clue how: https://i.imgur.com/eEjjUGU.gifv
by Slidy
May 6th, 2018, 9:05 am
Forum: Everything
Topic: Intermediate 25 HW
Replies: 9
Views: 2879

Re: Intermediate 25 HW

Nice work dude, I went through a lot of the same troubles as you like deleting the boxes in the listener and having to move the Trait definitions outside the cpp file (and I think a lot of others did too). For the splitting thing I actually used the box2d GetWorldPoint function which takes local coo...
by Slidy
April 25th, 2018, 10:31 pm
Forum: Everything
Topic: Doesn't work although I type the same as in the tutorial
Replies: 5
Views: 2392

Re: Doesn't work although I type the same as in the tutorial

That code by itself looks fine but won't "change colour" by itself. Can you show us your code for the whole function?
by Slidy
April 9th, 2018, 6:56 am
Forum: Everything
Topic: Help Implementing a Random Walk in Obj. Oriented Code
Replies: 2
Views: 1447

Re: Help Implementing a Random Walk in Obj. Oriented Code

Nothing wrong with your method, but hard to tell just from your description. Would be good if we could see some code.
Same with the stack overflow, can you show us the current code that causes that?
by Slidy
April 8th, 2018, 10:05 am
Forum: Everything
Topic: Multipe libraries
Replies: 7
Views: 2228

Re: Multipe libraries

The Chili framework is really bare-bones and is more useful as a teaching/learning tool, but if you don't really want to "waste" time implementing your own helper methods like sprite drawing or rotation/scaling and just want to make something then you're better off using SFML. Implementing this stuf...
by Slidy
March 27th, 2018, 12:21 am
Forum: Everything
Topic: Paint tool issue
Replies: 9
Views: 2797

Re: Paint tool issue

Most of this is covered by Chili later in the intermediate tutorials, but the same thing can be accomplished even without these (slightly) more advanced tools. I'll try to cover all of them anyway. auto auto is a C++ keyword that basically means "try to guess what this type is" for example if I did:...
by Slidy
March 9th, 2018, 9:59 pm
Forum: Everything
Topic: Motivations
Replies: 10
Views: 3698

Re: Motivations

You should join the discord.
Usually there is a bit more activity on there and lots of people asking for help.
by Slidy
March 6th, 2018, 12:10 pm
Forum: Everything
Topic: Simple Coding Challenge
Replies: 14
Views: 4690

Re: Simple Coding Challenge

I think this would be more interesting as a sort of "code golf" challenge.
Do it in the least amount of characters you can :D
by Slidy
January 4th, 2018, 9:07 am
Forum: Everything
Topic: Help
Replies: 8
Views: 3075

Re: Help

Just tried it out, compiles fine for me. Game also looks really cool with all the particle effects and the parallax.
by Slidy
September 9th, 2017, 1:22 pm
Forum: Everything
Topic: Toggle problem
Replies: 4
Views: 2648

Re: Toggle problem

Not sure if that wiki page helped you, but my solution was to run it when mouse is depressed instead of pressed. Can be done by keeping track of bool.
e.g.

Code: Select all

if( wnd.mouse.LeftIsPressed() )
{
	wasPressed = true;
}
else
{
	if( wasPressed )
	{
		// do code
	}
	wasPressed = false;
}