Page 1 of 1

Identifier "kbd" is undefined

Posted: June 27th, 2020, 10:54 pm
by Levelup
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

Re: Identifier "kbd" is undefined

Posted: June 28th, 2020, 11:42 am
by SamCam
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.

Re: Identifier "kbd" is undefined

Posted: June 28th, 2020, 4:35 pm
by Levelup
Hey,

code looks like this:

Code: Select all

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

Re: Identifier "kbd" is undefined

Posted: June 28th, 2020, 4:37 pm
by Levelup
Working from this also:

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

11:43 ish time.

Re: Identifier "kbd" is undefined

Posted: June 28th, 2020, 6:13 pm
by SamCam
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.

Re: Identifier "kbd" is undefined

Posted: June 29th, 2020, 12:42 am
by Levelup
Ah perfect thanks appreciate the response.

Will work from this now!