Yeah, click the Interact hotspot (just like the Tutorial Part 3) and it should create hKey_Interact() (or whatever it's named).
Then put the following inside the curly brackets of the new function.
Code: ags
That's the simple version, and that's really all you need right now.
~Trent
Then put the following inside the curly brackets of the new function.
oKey.Visible = false;
hKey.Enabled=false; //make sure you add this line to oKey_Interact as well!
player.AddInventory(iKey);
GiveScore(1);
That's the simple version, and that's really all you need right now.
~Trent