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

#21
I guess it was a false alarm. That being said, the game have potential however it is not an English game. Sadly, that is not going to work for me. I like the concept though.
#22
I tried to download the file to test it. It says virus detected. Whoever downloaded this archive got his or her computer infected with a virus.
#23
IT COMPILED WITHOUT ERROR!!! IT WORKS HAHAHAHAHAH!!! THANK YOU!!!
#24
This is the import as you said it is placed in the globalscript under edit script


When compiled this is the error message I am getting
#25
Quote from: Snarky on Sat 04/02/2023 19:26:02
Quote from: xboxown on Sat 04/02/2023 18:37:53
Code: ags
    if ((cHelperCX100.y-itemY)>20)
    {
      cHelperCX100.Walk(cHelperCX100.x-(cHelperCX100.x-itemX),cHelperCX100.y-(cHelperCX100.y-itemY),eBlock,eWalkableAreas);
    }
    else if (cHelperCX100.y-itemY<20)
    {
      cHelperCX100.Walk(cHelperCX100.x-(cHelperCX100.x-itemX),cHelperCX100.y-(cHelperCX100.y+itemY),eBlock,eWalkableAreas);
    }
    else
    {
      cHelperCX100.Walk(cHelperCX100.x-(cHelperCX100.x-itemX),cHelperCX100.y,eBlock,eWalkableAreas);
    }

Let's examine your code a little more closely. The cHelperXC100.Walk() commands have inline calculations where you first add the cHelperCX100.x/y values, and then subtract them again. That will of course cancel out, so if we simplify, we get:

Code: ags
    if ((cHelperCX100.y-itemY)>20)
    {
      cHelperCX100.Walk(itemX,itemY,eBlock,eWalkableAreas);
    }
    else if (cHelperCX100.y-itemY<20)
    {
      cHelperCX100.Walk(itemX,-itemY,eBlock,eWalkableAreas);
    }
    else
    {
      cHelperCX100.Walk(itemX,cHelperCX100.y,eBlock,eWalkableAreas);
    }

It now should become apparent that the case if (cHelperCX100.y-itemY<20) is wrong. You're telling it to go to the -itemY coordinate, but this will be some point off screen.

I would also point out that the tests here are... odd. You're checking if some value is <20, then if the exact same value is >20, and finally, if neither is the case, you do the horizontal walk. In other words, you only do a horizontal walk if cHelperCX100 is exactly 20 pixels below itemY. I doubt that this is the effect you intend. I presume that what you're actually trying to do is to say that if the character Y value is within 20 pixels of the item Y value, we're close enough, so just move horizontally. Otherwise move in both the x and y direction. To do this, the tests need to be done like:

Code: ags
    if ((cHelperCX100.y-itemY)<20 && itemY-cHelperCX100.y<20)
    {
      cHelperCX100.Walk(itemX,cHelperCX100.y,eBlock,eWalkableAreas);
    }
    else
    {
      cHelperCX100.Walk(itemX,itemY,eBlock,eWalkableAreas);
    }

It would be even better to use an Abs() function, but let's skip that for now.

** grabs Snarky forehead and kisses his forehead ** IT WORKS! IT WORKS! IT WORKS! IT WORKS! THE ROBOT ACTUALLY WENT DOWN THE STAIRCASE AND WENT TO THE GLOBE!! IT WORKED! IT WORKED! IT WORKED! IT WORKED! IT WORKED!! I LOVE SMART PEOPLE! I LOVE SMART PEOPLE!
#26
I did exactly what you said and see it did exactly what I don't want it to do. Like I told you, it is have nothing to do with solid or not as seen here https://imgur.com/Ot3iwUA
#27
I am not blocking the robot. Nothing to do with solid here. It is the robot not going down the stairs to reaching the globe. It simply moves all the way to the right. The robot passes through me as if I am invisible or don't exist as it walks to the destination specified.
#28
  I know what I am asking is trivial but to me it is not. I have a robot who joins the party later in the game. When I ask the robot to go to pick an item what I need it to do is walk to the item first, no matter what obstacles in its path before picking an item.  This is the code I did to make it happen...issue is with the y coordinate not the x coordinate.

Code: ags
    if ((cHelperCX100.y-itemY)>20)
    {
      cHelperCX100.Walk(cHelperCX100.x-(cHelperCX100.x-itemX),cHelperCX100.y-(cHelperCX100.y-itemY),eBlock,eWalkableAreas);
    }
    else if (cHelperCX100.y-itemY<20)
    {
      cHelperCX100.Walk(cHelperCX100.x-(cHelperCX100.x-itemX),cHelperCX100.y-(cHelperCX100.y+itemY),eBlock,eWalkableAreas);
    }
    else
    {
      cHelperCX100.Walk(cHelperCX100.x-(cHelperCX100.x-itemX),cHelperCX100.y,eBlock,eWalkableAreas);
    }

If you notice on this picture here https://imgur.com/RohPOgs if I tell the robot to pick up the globe it uses the x and y correctly to reach in front of the globe before it either talks out and says it cannot pick the item up or it picks the item up. As you can see no matter where I am at the bottom of the screen the robot does the job. Now, of course there are no obstacles in front of it or walls to go around it or anything like that so I have never tested it what happens if there are obstacles in it's path if it breaks the line of path or the robot is smart enough with the line of code above I have written to go around the obstacle until it reaches it's destination. But for now, it is working so far.

The issue I have is when I go up the screen and move to the top left side of the screen. That is when the robot does not behave correctly.

This is what I want it to do https://imgur.com/TC2PNUQ but it doesn't do it. This is why I put an X. This is what it does instead https://imgur.com/ecG2suO When it reaches at the end of the cliff up it acts like it cannot pick the item or pick the item up and as you can see the globe is all the way down there...it is not even close to the globe. Any advise in how to fix this issue?
#29
https://imgur.com/TxSgPT9



This is the default interface template when I started the project and see that bag icon...I want that removed and I want the function to open the interface moved to the dialog box. I attempted to copy the code that opens the interface and I get an error that the function does not exist. Does that mean I have to copy the entire codes and including the functions and move it to the dialog box in order for it work?

This is the function show_inventory_window(); that displays the inventory system and when I copy and paste it, I get an error.
#31
When I started my project I used the sierra template. The default sierra template that comes with AGS. I want to remove the icon when I hover on the top of the screen where to opens the inventory and have that execute only when you talk to that robot. Everything else I leave it as default. In my game I am not going to change the default GUI for the game from the sierra template as this is advanced features that I am not yet ready to do any changes. I am still in the beginner stages and using video tutorials to do modification in the game. So this project I am leave the template untouched. The only thing I want to change in the default template is remove the option to open the inventory and only have that opened through talking to that robot who will join the team.

In terms of how it shows the items...I am not changing the default inventory system..all I am changing the way to access it. Instead of accessing it through click a button when I move the mouse all the way to the top to show the UI interface, it is accessed only by talking to the robot and select in the dialog choice Show inventory. That is the only changes I want to do in the inventory system and GUI.
#32
   Hey guys,


  My game is about robots and robot world, the main hero does not have hands. He need to have another robot to join it which have hands, that robot when I talk to it in a dialog and pick a choice to show me it's inventory that is when the inventory pops up. Right now as default the player can have the inventory pop up under the menu choices above . I want to remove that completely and only have the player display the inventory by talking to the robot that joins you and ask it to show the inventory under the dialog script. How do I do that?

  The default template have multiple functions and loops, etc and calling other functions to open inventory and all stored under global scripts. Obviously I cannot call that function from dialog box editor. I don't know what to do. Thanks.
#33
I am in the giants cave and tried to put the six runes but to no avail it is not working. Any advise in how to solve this puzzle? Thanks in advance. Do you have a video in youtube showing how to solve it or picture showing how to solve it? Thanks in advance.
SMF spam blocked by CleanTalk