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

#21
General Discussion / My wish for 2010
Thu 07/01/2010 09:04:32
I wish that there were more tutorials for coding in AGS. There is so much that I want to do and I don’t know how…
:'(

I also wish that Prince would get of his butt and come to Sweden to do a concert, that I win the lottery, world peace, medicine for all the diseases and good luck and fortune to all my friends and to everyone here on AGS!
;D
#22
Hi, I need help again. Sorry for asking so many questions.
I’m trying to make my first gui following Ghosts tutorial but now I’m stuck.

First it says
QuoteThe action verbs are simple. For each one, we write a single line to set the game's cursor into the matching mode. So:

function btnScummLook_OnClick(GUIControl *control, MouseButton button)
{
 mouse.Mode = eModeLookat;
}

Easy as pie- we do not use AGS's shortcut to simply make the button set a mouse mode because later, we will add some spice to our script.
And I got that part working, but then further down it says:
QuoteThe next thing we do: In each of the four action button's scripts, we add the following:

function btnGameLook_OnClick(GUIControl *control, MouseButton button)
{
 mouse.Mode = eModeLookat;
 isVerbSelected = true;
}

Now Im lost where to put this? I get this error: Error (line 67): Undefined token ‘btnGameLook’ (file) GlobalScript.asc (line) 67

This is how my code looked like:
Code: ags

function btnScummLook_OnClick(GUIControl *control, MouseButton button)
{
  mouse.Mode = eModeLookat;
    isVerbSelected = true;
}


And then I tried this:
Code: ags

function btnScummLook_OnClick(GUIControl *control, MouseButton button)
{
  mouse.Mode = eModeLookat;
  function btnGameLook_OnClick(GUIControl*control, MouseButton button)   
  isVerbSelected = true;
}


I guess this is all a bit over my head but I really like to get that gui!   :-[  ::)

#23
Could someone please tell me what I did wrong here?
It seems like the player can get points for taking cheese again tho its already in the inventory. The player dont get more cheese in the inventory - just more points.

Code: ags
 function oFridgeOpen_Interact()
{
  if (player.HasInventory(iCheese)){
      Display("You already taken some cheese out of the fridge");
  }
  else
      player.AddInventory(iCheese);
      Display("You take some cheese out of the fridge");
      GiveScore(5);
}
#24
Hi everybody
Now have I completed my first game. It was made mostly as a joke for my brother who has promised to make me a game but so far not got around to it. So to send him a reminder I make this game to give to him as a Christmas present.  ;)



Also it has helped me to beginning to understand AGS a little and hopefully my next game will be better!
If anyone got the time over to look at it and to give me some criticism on how to make it better I be grateful (I know, better graphic next time!). Its short and very easy so it will not take lot of your time.  ;D

Updated with some bug fixes! 2009-12-29

http://www.4shared.com/file/184062022/1d45b570/SistersRevenge_11.html
#25
Hi
I trying to make my first gui using Ghost tutorial but get a error message: Error (line 60): Undefined token'myCreateScummText'

I have made the function, it was when I put it in the repeatedly execute function it stoped working.
Hope someone understand what Im trying to say and here is the code:
Code: ags
 
function repeatedly_execute() {  // put anything you want to happen every game cycle, even when the game is paused, here
 
  myCreateScummText(); 
  if (IsGamePaused() == 1) return;  // put anything you want to happen every game cycle, but not when the game is paused, here
}


Code: ags
function myCreateScummText ()
{
  if (mouse.Mode == eModeWalkto) { lblScummText.Text = "walk to";}
  if (mouse.Mode == eModeLookat) { lblScummText.Text = "look at";}
  if (mouse.Mode == eModePickup) { lblScummText.Text = "take";}
  if (mouse.Mode == eModeInteract) { lblScummText.Text = "use";}
  if (mouse.Mode == eModeTalkto) { lblScummText.Text = "talk to";}
  
  if (mouse.Mode == eModeUseinv) { lblScummText.Text = "use";
                      lblScummText.Text = lblScummText.Text.Append(player.ActiveInventory.Name);
                      if(Game.GetLocationName(mouse.x, mouse.y)!=player.ActiveInventory.Name){
                        lblScummText.Text=lblScummText.Text.Append("on");
                        lblScummText.Text=lblScummText.Text.Append(Game.GetLocationName(mouse.x, mouse.y));
                      }
                     }
  if (mouse.Mode!= eModeUseinv) { lblScummText.Text = lblScummText.Text.Append (Game.GetLocationName(mouse.x, mouse.y));}
}


#26
Hi
I have (almost) completed my first game ever and I want to ask you all what to do.
I was thinking of putting it up on the game page with a disclaimer that it was a first game to get (kindly) criticism to help me to get better at making game if anyone got the time to look at it and to make it easier for friends and family to found it.
Hopefully then they also would found AGS and make some game too.  ;)

But now I have read all over that you shouldn’t upload your first game and it also says on the Game page itself. 
QuotePlease DO NOT add your first game that you made to try out AGS (unless you since developed it into a full game). By all means post it on the forums to get feedback and help you improve for your real game, but think to yourself whether the average adventure gamer would enjoy playing your game or not before adding it here.

Also looking at the game on the game page I feel discouraged and start wondering if I will ever make a game looking so good as those games do. But at the same time they are also inspiring and show what you can do with program.

Now I’m wondering should I put it up or not? Probably not.  :) And if not in what forum should someone post it to get feedback?

#27
Runtime error: Function still open, missing } (File: room3.acs/Line: -10)

Please can someone look at my code? Im missing a } somewhere but I cant find it. :-[


Code: ags
 // room script file

bool doorlocked = true;

int myCounter;

function room_LeaveBottom()
{
  cOskar.ChangeRoom(4, 289, 347);
}

function room_LeaveLeft()
{
  cOskar.ChangeRoom(2, 690, 410);
}

function hTv_Look()
{
  cOskar.Say("I dont have time to look at the tv now, I got work to do!");
}

function hTv_Talk()
{
  cOskar.Say("My mum says the people on the telly isnt real so there is no point in asking them for help.");
}

function hCouch_Look()
{
  cOskar.Walk(416, 389, eBlock, eWalkableAreas);
  if (myCounter == 0)
  {
    cOskar.Say("Dad sleeps on it sometimes after dinner");
  }
  if (myCounter == 1)
  {
    cOskar.Say("Sometimes you can find stuff in it, like loose change and things");
  }
  if (myCounter <2)
  {
    myCounter +=1;
  }
}

function hCouch_Interact()
{
  cOskar.Walk(416, 389, eBlock, eWalkableAreas);
  if (myCounter == 3)
  {
    cOskar.Say("Under that pillow I only found the remote");
  }
  if (myCounter == 4)
  {
    cOskar.Say("Wow a empty cd! Good now I got something to put the game on");
    player.AddInventory(iCd);
    GiveScore(5);
  }
  if (myCounter == 5)
  {
    cOskar.Say("There is nothing else useful there");
  }
  if (myCounter <6)
  {
    myCounter +=1;
  }
}

function hDoorSisters_Look()
{
  cOskar.Say("Thats the door to my sisters room");
}

function room_AfterFadeIn()
{
    RemoveWalkableArea (2);
}

function hDoorSisters_Interact()
{
  cOskar.Say("I cant walk in there without a present, now can I!");
}

function hDoorSisters_Talk()
{
  cOskar.Say("Coming soon Sis! Just got somemore this to do");
  cSister.Say("Hurry up will you! I want my present!");
}


function hDoorSisters_UseInv()
{
  if (cOskar.ActiveInventory == iGift) {
    doorlocked = false;
    oOpendoor_sister.Visible = true;
    cOskar.Say("Party, here I come!");
    GiveScore (5);
    RestoreWalkableArea (2);
    player.ChangeRoom(5);
}
[\code]
#28
Hi everyone, I need help again.
I’m using the AGS (3.1) and I have looked in the manual and searched the forum but I can’t found the answer.

The goal of my game is to found five things and the putting them together to get a six item and I want the player to put them in a order.
I think I can do this with a if or else statement but not sure how?

This is what I have done so far: Place inventory object 1 on hotspot turning it to an object. Use inventory 2 on object, making it disappear and give the player points, if the player take another object then 2 - display message.
How do I go from there? I want it to check that the player puts object 3 next and nothing else and that object 2 is there first?
Sorry for my bad English, hope someone understands and can help. Here is my code.

Code: ags

function hDesk_UseInv()
{
  if (cOskar.ActiveInventory == iComputer) {
    cOskar.LoseInventory (iComputer);
    oComputer.Visible = true;
    GiveScore (5);
  }
}


function oComputer_Look()
{
  cOskar.Say("My old trusty friend!");
}

function oComputer_UseInv()
{
  if (cOskar.ActiveInventory == iKeyboard){
    cOskar.Walk(260, 483, eBlock, eWalkableAreas);
    cOskar.Say("Good, now Im starting go get somewhere but where is my mouse?");
    cOskar.LoseInventory (iKeyboard);
    GiveScore (5);
  }
  else 
    cOskar.Say("I need to put something else there first");
    
}

#29
Hi all!
I just stared using the AGS (3.1) and am making my first little game to understand it better.  I gotten this far by looking in the manual, searching the forum and trying out Densmings good You Tube videos but now I need help.

My character (cOskar) has got an inventory object (iShoppinglist) by a dialog so it is in his inventory.

I wish to make it so that when he looks at it (“It’s the shoppinglist I got from Mum”) it says it’s the shopping list but but then he looks at in again (or interact with it) it change from object iShoppinglist to object iMap (“Look something is written on it back”) (Player found new quest item, gets score).

Is that possible to make? I know that there is no interact button in the inventory in the Default game, I read something about using “talk to”? Or should I change the name of the item and keep picture if that easier?

Please, someone help me and please keep in mind that I just started and no nothing about scripting and excuse my bad English. Thank you.
SMF spam blocked by CleanTalk