Search found 311 matches
- May 10th, 2017, 3:17 pm
- Forum: Everything
- Topic: Click System
- Replies: 27
- Views: 8404
Re: Click System
i cant think any other solution just to reset Click for all elements once new frame begins
- May 10th, 2017, 10:01 am
- Forum: Everything
- Topic: Click System
- Replies: 27
- Views: 8404
Re: Click System
That space shooter was just first game , i would be making it differently now , i was thinking to recode that one but i am interested in networking stuff so i rather code multiplayer
- May 9th, 2017, 10:34 pm
- Forum: Everything
- Topic: Click System
- Replies: 27
- Views: 8404
Re: Click System
Tnx for tips Alibinopapa , i havent been coding this project that long , last two month as was just looking trough the code when ever i had time so i would not forget whats going on , i think i was starting on december or january :/
- May 9th, 2017, 8:21 am
- Forum: Everything
- Topic: Click System
- Replies: 27
- Views: 8404
Re: Click System
@Chili but i didt say anything wrong :/ and i know hes trying to learn thats why i said that i cannot do that way because GUI have to deal with it
- May 8th, 2017, 10:45 pm
- Forum: Everything
- Topic: Click System
- Replies: 27
- Views: 8404
Re: Click System
hmm interesting that's makes a sense actually . i was thinking that Mouse was sending multiple events until you release the button not a single as u said , that change a lot i guess . the alternative you gave actually would work for toggle , but that would not solve a thing that button will be proce...
- May 8th, 2017, 1:22 pm
- Forum: Everything
- Topic: Click System
- Replies: 27
- Views: 8404
Re: Click System
Also AlibinoPapa you said i only get single Lpress and Lrelease messages how else i can get them ?
- May 8th, 2017, 7:26 am
- Forum: Everything
- Topic: Click System
- Replies: 27
- Views: 8404
Re: Click System
AlibinoPapa , yes thats the way i am currently handling it , one LeftPress event Click = true; on Release click = false; , so again i am not sure if i should try to do this with GUI system or do some kind a changes to Mouse class ?
- May 8th, 2017, 7:24 am
- Forum: Everything
- Topic: Click System
- Replies: 27
- Views: 8404
Re: Click System
Man thas the GUI job to handle this if i would need to make this each time i setup a button whats the point of my GUI system then .
- May 7th, 2017, 7:45 pm
- Forum: Everything
- Topic: Click System
- Replies: 27
- Views: 8404
Re: Click System
you would not see an effect you get this : when you click mouse you set Click = true ; and if its click=true after draw you set him to false and the next frame when it goes it wont be draw en again ,and because game runs 60 frame per second you wont see any effect. I know where problem is i just nee...
- May 7th, 2017, 6:56 pm
- Forum: Everything
- Topic: Click System
- Replies: 27
- Views: 8404
Re: Click System
as i said the only thing you should be looking at is GameStateGamePlay.cpp (Button handler function) ,GUIManager.cpp (MouseHandler function) and GUIElement.h mouse callsbacks this is not even related at all , and because you add Click= false ; you would not even notice an effect witch is an active s...