Search found 7 matches

by coolmoon
May 8th, 2017, 3:23 am
Forum: Everything
Topic: Click System
Replies: 27
Views: 8321

Re: Click System

I am just trying to learn, and this is probably like the shitty work around you don't want to do but what if you created a setter in GUIElement.h like virtual void Released() {Click = false;} then call it in void GameStateGamePlay::ButtonHandler() { GameState::GlobalButtonHandler(); //main scene but...
by coolmoon
May 7th, 2017, 7:18 pm
Forum: Everything
Topic: Click System
Replies: 27
Views: 8321

Re: Click System

Ok, so like I said I don't understand your code, and didn't mean this to be a fix. If you add the Click = false; like I did you do see an effect which is it toggles a menu or something for Gang or Character. I only posted so it might help you track your problem down.

anyway good luck
by coolmoon
May 7th, 2017, 6:34 pm
Forum: Everything
Topic: Click System
Replies: 27
Views: 8321

Re: Click System

hey egizz983, first of all I don't know shit, I am just starting out and don't understand much of your code. that being said in GUIButton.cpp I added a "Click = false;" as shown below. It probably breaks other shit but does toggle the button. thought it might give you a clue on what to fix ~CoolMoon...
by coolmoon
April 23rd, 2017, 10:48 pm
Forum: Everything
Topic: looking for critique on first game.
Replies: 7
Views: 2672

Re: looking for critique on first game.

Thanks albinopapa,
all feed back is welcome. I want to start forming good habits from the start.
I will study up on the initializer list.
Also the //ToDo tip will be helpful, I found myself lost a couple of times or at least wondering what I needed to do next.

Thanks again
by coolmoon
April 23rd, 2017, 3:59 pm
Forum: Everything
Topic: looking for critique on first game.
Replies: 7
Views: 2672

looking for critique on first game.

so i am only to lesson 12 but wanted to try a game on my own. I made a straight up game of pong and called it ping. Game play left player "w" and "s" for up and down. right player up and down arrows enter to start game space bar to serve ball speeds up every 3 hits and resets each serve first to 10 ...
by coolmoon
April 20th, 2017, 2:21 am
Forum: Everything
Topic: destroy and reinitialize object
Replies: 2
Views: 1616

Re: destroy and reinitialize object

Thanks albinopapa,
been playing with it and think I got a ball.reset() function working.
by coolmoon
April 19th, 2017, 4:47 am
Forum: Everything
Topic: destroy and reinitialize object
Replies: 2
Views: 1616

destroy and reinitialize object

Hey, so just starting out and have gone through lesson 12 or so and stopped to try and make a version of pong with what i have learned so far. I have made a ball class and initialize at the beginning of the file and can draw the file with ball.draw(gfx); bounce it off the walls and paddles ect.. my ...