Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - Ludde

#1
I have a problem with scripting an object. I want the object to dissapear upon interaction with it, and I want another inventory object to be added to the inventory.

// room script file

function oKey_Look()
{
Display("A key");
}

function oKey_Interact()
{
oKey.Visible - false;
player.AddInventory(iKey);
}

Thats the script and I get this error-message:
room1.asc(10): Error (line 10): PE04: parse error at 'oKey'

Anybody who knows what I am doing wrong?
#2
Im trying to use a background for my game that i have made in paint. But whenever i do a test run of the game only about 1/4 of the background is shown. It's 1/4 zoomed in so it fits the screen, and the character is standing in the middle of it although the area on the screen is not "the walkable area". The screen also flickers and doesn't appear to show the same colours as the original imported file has. I'm using the same resolution on the file as I have in the settings of my game. It's also a 24-bit coloured file, which from what I've understood, should do fine in a 16-bit AGS project. Can anyone help me with this matter? I would really appreciate it....
SMF spam blocked by CleanTalk