Search found 5 matches
- October 6th, 2017, 11:20 pm
- Forum: Everything
- Topic: Question about video 4.3
- Replies: 8
- Views: 3055
Re: Question about video 4.3
Thank you for the explanation!
- October 6th, 2017, 2:09 am
- Forum: Everything
- Topic: Question about video 4.3
- Replies: 8
- Views: 3055
Re: Question about video 4.3
I think I get it, so the way I did won't stop the cursor from getting faster and faster because it doesn't care if my button has been released or not so it keeps adding more and more.
While your way says if the button has not been released don't add anymore.
right?
While your way says if the button has not been released don't add anymore.
right?
- October 6th, 2017, 1:40 am
- Forum: Everything
- Topic: Question about video 4.3
- Replies: 8
- Views: 3055
Re: Question about video 4.3
if (wnd.kbd.KeyIsPressed(VK_UP)) {
if (StopIncrease) {
}
else {
vy = vy - 1;
StopIncrease = true;
}
}
else
{
StopIncrease = false;
}
So the way you did it Chili does it toggle within (one) frame instead of (two)?
if (StopIncrease) {
}
else {
vy = vy - 1;
StopIncrease = true;
}
}
else
{
StopIncrease = false;
}
So the way you did it Chili does it toggle within (one) frame instead of (two)?
- October 6th, 2017, 1:23 am
- Forum: Everything
- Topic: Question about video 4.3
- Replies: 8
- Views: 3055
Re: Question about video 4.3
So when my program runs and StopIncrease = true;
shouldn't this make it false? for the next frame?
if(StopIncrease){
StopIncrease = false;
}
shouldn't this make it false? for the next frame?
if(StopIncrease){
StopIncrease = false;
}
- October 6th, 2017, 12:50 am
- Forum: Everything
- Topic: Question about video 4.3
- Replies: 8
- Views: 3055
Question about video 4.3
I just started watching these videos very inexperience with coding but trying my best so go easy on me. I would like to know when we set the code to stop the instant increase in velocity while holding the key down that this code doesn't work. So I have (bool StopIncrease = false;) if (wnd.kbd.KeyIsP...