Identifier "kbd" is undefined

The Partridge Family were neither partridges nor a family. Discuss.
Post Reply
Levelup
Posts: 4
Joined: June 27th, 2020, 10:50 pm

Identifier "kbd" is undefined

Post by Levelup » June 27th, 2020, 10:54 pm

Hey all,

Firstly thanks for the tutorials they are wicked and shit.

Secondly got visual studio 2019 and the Chili Framework 2016 and im recieving that error in the debugger. I'm on tut 4, and this is fucking my shit up :(

Have you seen it before or have any sugestions?

Thanks
Levelup

SamCam
Posts: 17
Joined: January 8th, 2020, 3:24 pm

Re: Identifier "kbd" is undefined

Post by SamCam » June 28th, 2020, 11:42 am

Hey, welcome!

Is your code looking something like this?

Code: Select all

  if (wnd.kbd.KeyIsPressed(VK_LEFT))
    {
        x = x + 100;
    }
   
It's hard to say what your problem is without a little more detail.

Levelup
Posts: 4
Joined: June 27th, 2020, 10:50 pm

Re: Identifier "kbd" is undefined

Post by Levelup » June 28th, 2020, 4:35 pm

Hey,

code looks like this:

Code: Select all

if ( kbd.RightIsPressed())
	{
		x = 500;
	}
Thanks

Levelup
Posts: 4
Joined: June 27th, 2020, 10:50 pm

Re: Identifier "kbd" is undefined

Post by Levelup » June 28th, 2020, 4:37 pm

Working from this also:

https://www.youtube.com/watch?v=XSKF2GZLjxg

11:43 ish time.

SamCam
Posts: 17
Joined: January 8th, 2020, 3:24 pm

Re: Identifier "kbd" is undefined

Post by SamCam » June 28th, 2020, 6:13 pm

Righto,

Looks like you're using Chili's old video series, but if you followed the link and downloaded the current engine from the link in the video description you've probably downloaded the newer (2016) framework. In which case you may find a lot of things that Chili does wont work right for you.

Try his new series here;
Start of beginner: https://www.youtube.com/watch?v=PwuIEMU ... BHBFFRVWsx
The bit you want: https://www.youtube.com/watch?v=xWLcp_yOpww

I've been following this series for a while and its super fun.

Levelup
Posts: 4
Joined: June 27th, 2020, 10:50 pm

Re: Identifier "kbd" is undefined

Post by Levelup » June 29th, 2020, 12:42 am

Ah perfect thanks appreciate the response.

Will work from this now!

Post Reply