[Pipmak-Users] Re: Hotspot maps
Status: Alpha
Brought to you by:
cwalther
From: Will M. <lea...@ho...> - 2004-09-29 18:16:58
|
> > i'm also getting an error saying: > > bad argument #1 to 'onkeydown' (function expected, got table) > > That's only when you replace () with {}, right? Because stuff in {}s is > a table, and onkeydown {foo} is a shortcut for onkeydown({foo}). > "onkeydown" is a function that takes another function (the one to be > called on keypresses) as an argument. The ()s are correct here. > > -Christian yes, that is only when i used {}. when i use (), it doesn't give me an error line, but i can no longer ESC out of the game and pressing the spacebar gives me an "Unused key 32 pressed" message. by the way, i am running this on OSX. thanks, will |