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

#1
Hello!

Because i have many Problems which i sometimes cannot solve for myself, i wanted to start one Thread for some different Questions.

My first Question is that i want to call an object from my Room2 in the Globalscript.. This is not possible because Globalscript cannot recognise my Room Specific Objects...

Here is my Sourcecode:

Code: AGS
function Kater_UseInv()
{
  if ( (player.ActiveInventory==inventory [7]) || (player.ActiveInventory==inventory [4]) ) 
    {     
    if (Kater.Room==2)
      {
       if ((player.HasInventory(Napfivoll)) && (player.HasInventory(essenfertig)) )
          {    
            cEgo.Walk(555, 356,  eBlock);
            wassernapf.visible=true; // <- Here is the Problem! What to do with it?!
            volleschale.visible=true; // <- Here is the Problem! What to do with it?!
            cEgo.Walk(505, 380);
            Kater.Walk(603, 325,  eBlock); 
            
          }  
       else
          {
          Display("Die Katze braucht Wassser -und- Nahrung.");
          }
      }
    else
      {
      Display("Geh Küche");
      }
   
    }
  else
  {
    Display("Das möchte er nicht..");
  }
}


The Errormessage is:

Quote
GlobalScript.asc(265): Error (line 265): Undefined token 'wassernapf'
#2
Hello!

I searched the Character Funktions for a specific function, but had no success.. How do i Get the Room Number where a specific Player is in?

I need it to check if "Cat" is in the Kitchen, so that when this is true, the Player and the Cat walk to a hidden Catfood and Drinking spot and make it visible, followed by a feeding animation.
#3
Hello!

I want my Cat Character jump on a Table. I made some jump Animation which i either want to use as a Animated object and Teleport the Cat onto The Walkable Area on the Desk, or i would add the Animation to the cats Animation/Views but have to Move The cat between two Walkable Areas without connection.

Can somebody tell me a solution for that Problem?
#4
Hello!

I use Verbcoin Template with 640x480 Resolution. I Have the following Problem: The Inventory is 640x480 but the Game recognises this as 320x240, i guess. When i drag item 1 to item 3 the inventory closes, before i reach it. Please look at the screen

Screen:
Klick

Where do i have to Modify this?


EDIT: Got it Myself i Think! Its in the Global Script in the Beginning
Thank you!
#5
Hello!

I'm a total Newbie to the Scripting Language used in AGS ans i wanted to realise a Cat following the Character when he leaves the room.

My first Try:

Quote
function room_LeaveLeft()
{
  while(Kater.x!=cEgo.x)
  {
  Kater.FollowCharacter(cEgo);
  }
 
   
cEgo.ChangeRoom(2, 490, 395);
}

I must say a have really no Idea how to make it right and where to search in the Syntax Library, could somebody translate it into the right language? :D
#6
Hello!

I realised a roomchange using this Method:

Quote
Remove all text from the field next to "walks off right edge".
Then click on "walks off right edge", then click the little ...-button.

This will open the room script and add this function to its end:
Code: Adventure Game Studio

    function room_LeaveRight()
    {
     
    }


Now put the line (player.ChangeRoom(2, ...); ) in between { and }.

But it wont work corectly. When my Player Character Switches the Room, just the Room is loaded but the Character is not Visible or Movable. I Tried different starting coordinates in Room 2 but it wont make a difference. I Use the Verb Coins Template.

Then i tried deleting Room2 and making a new one but no change.
SMF spam blocked by CleanTalk