Page 1 of 1

my shape is not changing

Posted: May 17th, 2020, 5:57 pm
by emily
Hi,not sure why this isn't working, but this body of code doesn't do anything. I'm not seeing the shape changed.
Beginner Tutorial 4.3 Code.zip
(88.58 KiB) Downloaded 200 times
Any help would be appreciated.
shapeIsChanged = false;
if (x > 200 && x < 300)
{
shapeIsChanged = true;
}

Re: my shape is not changing

Posted: May 18th, 2020, 3:13 am
by albinopapa

Code: Select all

	shapeIsChanged = false;
	if (x > 200 && x < 300)
	{
		shapeIsChanged = true;
	}

	//... irrelevant code removed

	shapeIsChanged = wnd.kbd.KeyIsPressed(VK_SHIFT);
So which is it? When 'x' is between 200 and 300? or when the shift key is pressed?