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

#441
Hi

check the manual and here  for GUI customising.

You can completely customise any new/or old GUI's in which to do what you are looking for.

barefoot
#442
Cheers Unai... back on track  :=

barefoot

#443
Hi

I'm crosseyed this morning and i cant get the ELSE to work.. Rest ok..

Sorry to be a pain  ???

Code: ags

function cClaudia_Interact()
{
  
  if (player.HasInventory (iKey))
  {
  
  
  
   if ((cClaudia.x - cPaul.x <=90 && cClaudia.x >= cPaul.x) || (cPaul.x - cClaudia.x < 90 && cPaul.x > cClaudia.x))
    {
  
   cClaudia.FaceLocation(996, 249);
   cPaul.FaceCharacter(cClaudia);
   cPaul.Say("This place is desolate. I could mug her!!");
   Display("With an almighty punch you land a left hook on her chin and she falls down like a sack of spuds!");
   cClaudia.ChangeView(15);
   if (cClaudia.x > 299) 
{
  cClaudia.StopMoving();
}


   cPaul.Say("I'de better get her out of sight!");
   Display("You drag her down a small alley");
   cPaul.Say("Mm, Credit cards, a pearl necklace and a wad of cash. That should help me a bit!!");
   Display("You leave the woman in the alley and look for more cash and stuff");
   cClaudia.Transparency=100;
   
   
   }
 

}

else
  {
    
    Display("She's too far away!!");
  }
}



All eagle eyed replies welcomed

cheers

barefoot


#444
Cheers Khris.. I'll give that a bash..    :=

barefoot
#445
Thanks for a reply Khris...

Once an object is added to your inventory the object disappears and it can NEVER be picked up again.. Ever... hence the IF, ELSE statement etc etc.

You keep it in your inventory until you sell it to the fence in exchange for money, again it is gone FOREVER from your Inv once the fence buys it from you..

What I need is for the fence (NPC) to tell you what you have in your inventory and give you some money... simples..

IE (After script check for what you have in you inv)

Code: ags

cfence.Say("You have a credit card, TV, CD player. Ok, I'll give you $300");


Something along those lines.

As i said earlier, what items you have when you meet the fence depends where you've been..

You can visit the fence anytime during the game..

UPDATE.. I suppose an alternative way would be to use inv on fence with the activeInventory and have it go on from there.. Of course you would need to use every inv you have one at a time...as an alternative way

cheers
barefoot


#446
Hi

I am trying to determine the best way of doing the following:

Player gets various inventory items from various places within the game and in no certain order.

You can go to see a fence at any time who will offer you money for the items you have, whatever they may be. Naturally you lose the inventory items and gain the cash..

You do this until you have all the money you need.

Obviously this can be too much for HasInventory I thinks..

Items include:

credit card
jewellery
designer clothes
TV
CD Player
Antiques


----------------------------------------------------------------

I'm wondering if Booleans are a way to go rather than HasInventory etc etc

Could someone assist me in going about it the right way and possible give an example.

Cheers guys

barefoot





#447
Hi

SOLVED: CHANGED Iconbar to alwaysoff..



This is the image of my GUI's

I have reset Iconbar to 100 and z order=0

My problerm is that spacebar fails to skip and cursor remains the same..



Has anybody any ideas how to correct this?

I will try again myself until i get an answer.

cheers

barefoot






#448
Thanks for your added comments saluk, points noted..

I've been toying with a few ideas such as a version of Grand theft auto AGS style....oh, and willy the run-away sausage. to name but a few..lol

I am currently researching Forums and places for ways to improve artwork and gameplay.

All food for thought...

I just hope my pc don't get clobbered by trojans before i finish a game this time as it did with Fur Balls and Indy Bones:=

cheers

barefoot


#449
Hi

i will be looking into the cobra part again.. sorry if its seems to be bugged..

barefoot
#450
Critics' Lounge / Re: Website Critiques Please
Tue 11/01/2011 17:13:36
Hi

'Frames' went out in the late 90's.. I often found that during searches only 1 main Frame came up, unless you do a 'body onload' script to load a whole page with the 2 Frames.

As Wersus mentioned, CSS is a good idea and gives you control on text and stuff throughout the site through just 1 file.

I have not looked the whole site over.

It does look a little template like but thats fine..

regards
barefoot



#451
Quote from: Eli on Mon 10/01/2011 12:54:58
Thank you Barefoot, but that doesnt work for me, I use the flute when I go out to the cave on me, the cobra disappears, and  after some seconds, appears again and kills us

bye!

I will try again next weekend because now I will go to the beach...mmmmm

i have sent you a pm

barefoot

#452
Hi Eli

you have to play the flute by using it on YOU...not the cobra etc...

Not sure about the wait thing.. I'll look into it..

It worked fine last time I played it..

Let me know...

PS have just played it and after you have the flute and return to the cobra you have a few sceonds (timed) to use the flute on YOU... The cobra dissapears and you can pass on...

cheers

barefoot



#453
Code: ags
Hi Calin/Khris

as suggested:

function room_RepExec()
{
     if (IsTimerExpired(1) == 1) {
     int ran=Random(2);
     
    if (ran == 0) {
     cdiablo2.Say("You've got the wrong man!");
      cleech.Say("Poppycock!");
       cginger.Say("Come clean!");
  
   }
     else if (ran == 1) {
     cdiablo2.Say("I'm innocent!");
      cleech.Say("You're as guilty as Manson!");
       cginger.Say("And Jack the Ripper!");

  }


    else if (ran == 2) {
     cdiablo2.Say("I'm missing my break time!");
      cleech.Say("That's such a pity!");
       cginger.Say("Poor little you!"); 
   
}
    SetTimer(1, 120); 
}
}



Cheers


barefoot




#454
Thanks for your comments poltergeist

barefoot
#455
Points noted anian...

example 1 above: Perhaps have the building sandwiched between other buildings to create a bigger scene?

example 2 above:  I understand about the hotspot scenerio and it can be awkward with a following character blocking it... 

Room layouts: can of course be quite complex and time consuming..  Is a simple Room with less, but more important factors, better?

Somebody once, some time ago, created backgrounds of the same colour but used different shades and tints of that colour... What is the view on this?

Are less/more colours better?

I am looking at Prospectives and have learnt a lot.

** Clipart Objects: Yes or No?


cheers.. all comments welcomed

barefoot


#456
Hi

It seems to import ok now...  maybe just a first time opening bug.. not sure?

anyhow... will try Sound and Ambient next...

Good so far CJ

** had to restart AGS for another music clip..

barefoot

#457
Hi Calin

Strange... i made sure music file was in AudioCache folder...

Anyhow, I shut the game down and restarted... opened it up again and played the game... music now plays....

Not sure why????

Best idea ever to use file names rather than 1 2 3 etc...

Bit weird.. I have just started using 3.2 so i will experiment some more.

barefoot

#458
Hi

when I import music into 3.2 an error states that the file is being used by another process.. any ideas?

cheers

barefoot
#459
Cheers Calin  :=

barefoot
#460
Hi

this is one example:



And another:



No doubt they could be greatly improved and I will use advice for my next game.

barefoot






SMF spam blocked by CleanTalk