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

#1
Hello,
I'm trying to make the background change when the player has an object in the inventory but without success.
The code is as follows:

Code: ags

function room_AfterFadeIn()
{
  if (player.ActiveInventory == iSpanner)
    {
      SetBackgroundFrame(1);
    }
  else
    {
      SetBackgroundFrame(0); 
    }
}


The idea is:
Room 1 has a streetlight shut off.
Player walks in Room 2, remove a spanner from a generator
Generator starts running
Player goes back to Room 1 and the streetlight is on

To do this I thought to make the program check the presence of the spanner inside the inventory.
Obviously I'm doing something the wrong way.

Thank you in advance.
#2
Hello everybody,
I'm a noob but I'm reading the tutorials and happily creating my first adventure.
However there is something that annoys me very very much. I'm using the standard Sierra like interface that comes from the template (I'll delve into modifying it much later) and I find very difficult to point and click objects. I already tried and modified the hotspot of the cursors and the interaction with the room objects it's now less painful. However, to click and select an object inside the inventory it's painful and terrible:(. Everytime I need to click in a frantic way all over and around the inventory item in order to select it by pure chance.
Is there something wrong with my setting maybe?
Thank you in advance for your help.
#3
Hello to everybody.
I have an annoying problem with a simple interaction with a hotspot.
As you can see my game hasn't good graphics. Please don't be though on me. I'm currently making a game for my little kid using his own drawing as setting.


https://docs.google.com/file/d/0B74cisQ-2QTOQmwtRXhqc0xOS00/edit?usp=sharing

By the way, as you can see from the attachments, I created a hotspot along the stairs. What I wanto to do is that when the chatacter clicks on the hotspot it walks automatically atop the stairs.
For that I tried both the following functions but neither of them work.

Code: ags

function R2StairsTransition_Interact()
{
player.Walk(351, 226, eBlock);
}


Code: ags

function R2StairsTransition_AnyClick()
{
player.Walk(351, 226, eBlock);
}


Previously I had used the _Interact() function on an object with the same intent and, in this case, it worked flawlessly.
Thank you in advance for your help.
Cheers.
#4
Hello everybody,
I'm new to AGS and this forum and I'll thank you in advance for your help.
Question it's quite simple and (I do hope) dumb.
I began to design my own game with satisfaction. Today I decided to show my kid how I'm doing, therefore I copied the whole folder (including subs) of the game and copied it in my home pc. I installed AGS and opened the game but I got the following error.


https://docs.google.com/file/d/0B74cisQ-2QTOa1pGNDdPelJBdDQ/edit?usp=sharing

Strange thing is that the file it's looking for it's actually in the folder at the proper position (see below)


https://docs.google.com/file/d/0B74cisQ-2QTOZzdlTjVvWHRpWlU/edit?usp=sharing

I suppose I've done something very dumb but I'm a complete noob with this software.
Thanks again!
SMF spam blocked by CleanTalk