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 - Iceshoot

#1
Quote from: Khris on Wed 17/02/2010 23:58:44
Problem:
Quote from: Iceshoot on Wed 17/02/2010 23:40:52
The scripting for AnyClick is gone already..

Solution:

1. Click here:


2. Use the backspace and/or delete key to remove all text from the field.

Yay everything's working now!!! ;D

Thanks alot Everyone!!

This thread is closed for discussion, but will remain open for people with the same problem.
#2
Quote from: Khris on Wed 17/02/2010 23:35:38
The problem is that AGS tries to call both functions. First the function in the "interact with object" field is called, then the one in the "any click on object" field.

You need to clear the latter field.

And how do i clear the spaces in the 'Events' tab?

The scripting for AnyClick is gone already..

I don't get it, specify the problem and solution please.
#3
Ok, Thanks in advance for the Pixel Perfect Comment, that took care of the pixel hunt ;D

Let me describe my problem in more detail.

With the Default settings, wich you choose in the beginning of making a game, you get a certain interface(look, talk, interact etc.).

I want to pick up the key with the interaction option(the hand-cursor).

When i try to, the game closes, and an error message tells me this:

Error prepare_script: Error -18(no such function in script) trying to run 'oKey_to_Heaven_AnyClick' (room 1)

And i use this script:

function oKey_to_Heaven_Interact()
{
oKey_to_Heaven.Visible = false;
player.AddInventory (iKey);
GiveScore (5);
}

I dont want to use anyclick, because then EVERY option(Look etc.) picks up the key.

To Khris:

Yes, i made sure everything was entered just perfect.

And no, i had that problem before, but then i adressed a function to the background, and that problem was eleminated.
Plus with pixel perfect gone, this is not an issue anymore.
#4
Ok then..

Well i am currently following the tutorial, and now it came around to making my first object.
It said, as i'm using default(sierra style or something), i had no use yet for the pick-up script, as my style didn't really have a 'pick-up' option.
So i had to make an Interaction script.

So i made one, following the tutorial, only the thing now is..

When i try to pick the 'KEY' up, it trows me out of the game and say's 'There's no such function in the script, try the AnyClick script.'

But with the AnyClick script, even the LookAt function picks up the key..

Also, They key is quite hard to click on... Really tiny responsive space, like 1 pixel of the key..

My Script:

function oKey_to_Heaven_Interact()
{
oKey_to_Heaven.Visible = false;
player.AddInventory (iKey);
GiveScore (5);
}

Any Suggestions?
#5
And what's that on your keyboard?

-Edit-

Ah ok!! i got it ;D!!

Thanks dude!!

I'll leave this topic open for if anybody else encounters this problem.

Closed for discussion tho.
#6
// room script file

function hOcean_Look()
{
 Display(''I'm walking on.. an ocean?!'');
}

The above is EXACTLY how i got it, and what the tutorial learned me.

However i get this error when i try to Save or Run:

room1.asc(5): Error (line 5): incorrectly terminated character constant

The knowledge base here gives me Errors 404's, and no1 else asked this before when i searched the forums.

Any suggestions?
SMF spam blocked by CleanTalk