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

Messages - 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
I'll remember you Khris, in case you ever will need my help, which is unlikely because im such a noob at AGS.
#3
Thanx! Now it works perfectly well! I'm just trying to learn this program, that's why the background i sent you was so lame. Nice to learn that you can have different frames in the background. Heaps of thanx!

#4
Quote from: Khris on Sat 18/02/2012 15:29:58
Hard to say without looking at your screen. Could you upload the background (at a service that doesn't turn it into a jpg)?

I uploaded a png version, which has the same resolution as the BMP version of the file. I have the same result in ASG with both PNG and BMP files: black screen with character in the middle. The reason I chose to upload the png file was because when i tried uploading the bmg file it automatically turned into a png in the upload process. I figured it would be better to upload the file as a png because then no encoding would be going on in the upload process.

http://imageshack.us/photo/my-images/80/nybitmappsbilde.png/

Does anyone know a place where I can upload BMP files without automatically turning the file into another format in the process?
#5
I have the same resolution on the image as in the settings of the game. I tried changing the graphics driver and now i get no background at all when i do a test run.....what could be the problem?......
#6
I tried opening the game windowed, and also tried the compiled version, but it didnt solve the problem. I use win 7, and i think it is the 32-bit version but i am not 100% sure....
#7
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