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

#1
Thank you very much to both of you. Your suggestions are highly appreciated!
Cheers
#2
Thank you for your help Crimson Wizard. It was indeed something trivial yet deeply wrong in concept I was doing.
Thank you also for your suggestion about the design. I was also thinking about the same problem but I still have to look how to do that.
Would you mind proposing me a method?
#3
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.
#4
Thanks a lot NickyNyce!
By changing ItemWidth and ItemHeight in the Inventory GUI, I solved the problem!
Thanks again!
#5
Thank you NickyNyce.
I had already checked that topic but I could make no use of it.
I've already tried to offset the cursor hotspot and the graphic of the inventory item it's just plain (the standard key sprite that comes with the default template).
#6
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.
#7
Stupot+ Thank you very much for your hint.
I'm currently a complete noob learning my chore by following the tutorial and experimenting trying make something on my own.
I didn't know about the cursor responsive part yet. I changed some of them and now the interaction is much better for me. The look cursor was especially annoying.
Thanks again!
Cheers
#8
It seems that I solved the problem.
I didn't do anything special except adding more walkable area around the stairs and setting the Walk to Point property of the hotspot.
I don't know if this latter did the trick or what.
However I've noticed that the cursor clicks are extremely precise and it's somethimes difficult to point to small areas or objects. I suppose this has also to do with the cursor shape. I'm using the default Sierra style interface. I've yet to figure out which part of the cursor is the sensitive one: center, top...
#9
Khris,
despite the walkable area isn't very big, as you also noticed, the walk command with the walk cursor works fine, with the character hiking up the stairs as he's meant to do.
#10
Khris,
I added the method Display() and when I click on the hotspot area it shows "works".
What it happens when I interact with the hotspot is nothing. It's like I'd click on the background.
#11
Hi Khris,
I indeed created a walkable area which works perfectly fine.
Why would you draw a straigth line? How would you create the effect of walking on the steps in this case?
For the code part I'd probably either done something weird or I miss some other steps in plain light.
In any case I include another image showing the event part.

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

And here below all the code pertaining to that room at the moment.

Code: ags

// room script file

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

function R2TransitionLeft_WalkOn()
{
SetNextScreenTransition(eTransitionFade);  
cChar1.ChangeRoom(1, 774, 570);
}


Thank you for your support.
#12
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.
#13
Well I suppose it's smarter to zip the folder the next time I transfer the folder and subs.
#14
Thank you very much!
This was actually the issue. I corrected the extensions and this did the trick.
What is interesting it's why the got modified in the first place. I mean, I did nothing to accomplish that. I suppose that uploading the folder to Google Drive and then downloading it to my home computer partition caused Windows to think those files were .txt when in fact they weren't.
Well, next time I'll take much care.
Thank you again!
Cheers.
#15
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