my shape is not changing

The Partridge Family were neither partridges nor a family. Discuss.
Post Reply
User avatar
emily
Posts: 22
Joined: November 9th, 2019, 9:04 pm
Location: Kentucky

my shape is not changing

Post by emily » May 17th, 2020, 5:57 pm

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 198 times
Any help would be appreciated.
shapeIsChanged = false;
if (x > 200 && x < 300)
{
shapeIsChanged = true;
}

albinopapa
Posts: 4373
Joined: February 28th, 2013, 3:23 am
Location: Oklahoma, United States

Re: my shape is not changing

Post by albinopapa » May 18th, 2020, 3:13 am

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?
If you think paging some data from disk into RAM is slow, try paging it into a simian cerebrum over a pair of optical nerves. - gameprogrammingpatterns.com

Post Reply