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

#61
Hi

I have a region and I am trying to stop it activating except for lighting when first walking into the room. At the moment it obviously says the 'else' part because of conditions ( it could be worked around I suppose.)

I am certain there is a practical solution and I will keep looking.

I did try to make a bool but to no success.

I have so far:

Code: ags


function region3_WalksOnto()
{
 if (cFrankj.HasInventory(iKey) && cFrankj.View==3)
 {
   
   RestoreWalkableArea(2);
   cFrankj.FaceLocation(115, 160);
   cFrankj.Say("Now to find those evil basterds!");
   cFrankj.Walk(115, 195, eBlock);
   object[6].Visible=false;
   object[2].Visible=true; 
  
}
 else {
 
 cFrankj.Say("I'm sure I have useful things to help in here!");

 }

 }


All help appreciated

cheers



#62
Hi

I'm trying to script if player is facing east or west (Not just facing location X and Y).

I have 2 views the same accept facing different directions.

if player facing east change view to this else if facing west to this view.

Because in each view you have only 1 up, 1 down etc etc and I need 2 downs, ups etc

So, if player facing east change down view to this else this view if facing west.

Something along these lines.

Thanks if you can assist me

cheers







#63
  ***SPIT BOY***


SPIT SPIT SPIT is the nature of this game!

Thought i'd try something a little different.

EDIT: V2.1 with some adjustments: Spits, Points, Ricochet, Dropped cans.

Not so much an adventure game but a few rounds of sweaty, adrenalin rushes and a chance to get the girls slobbering all over you!

Don't play if you have spitting/smoking phobias, are a priest, a nun or a real prudel!

You play as YOUR NAME (TextBox Input) as you enter the World Open Spitting Championship 2011 having practiced for years on the neighbors cat!

Produce as much spit and flem as you can and try to spit over bottles, tins etc etc to be the ultimate World Spitting Champion 2011!

View your 'Points' position on the leader board throughout the game and watch as you rise to the number 1 spot, if you're lucky!

   

Get to the top of the leader board and walk away with the World Championship Spitting Title 2011, £100,000 and a giant gold trophy!

To train you had to achieve a heavy smokers cough to which you are now at your supreme best with lungs like coal sacks full of 'gold watches'!

If you find yourself 'drying up' there are some cigarettes and a big cigar to make you cough and produce huge flems just right for gobbing!

You are last to Spit and it won't be easy to win though, you are up against stiff spitting competition especially from Gobby Dave who is leading!

You have hecklers who hate your every spit,  people who are behind you all the way as well as a groupie or two to help you on!

Beware, if you run out of spit your turn will be over and you will probably lose the contest!

So, muster all the flems you can and get ready for the World Spitting Championship 2011!

Spit at the targets in each round.Your turn will end when you have no spits left or you have completed all the rounds.If you get the highest score you will be the World Spitting Champion 2011 and receive all the benefits and perks!
 
Arcade style
320 x 240 resolution
16 bit colour
Direct Draw
2 Mbs zipped
A ReadMe is always on display
Left mouse to spit
Aim with spit cursor

Download here:

http://www.adventuregamestudio.co.uk/games.php?action=detail&id=1508

Below pictures may be slightly adjusted.





Or Download here:

http://www.adventuregamestudio.co.uk/games.php?action=detail&id=1508

View / comments welcomed.

Cheers

Good spitting ;)

steptoe




#64
Hi


Tut, I forget to stop the mouse from shooting an object and game was waiting. This has now been corrected. Sorry.


I am on the last few bits of a game and this has cropped up:

On the credits page I have a leaders board showing players position and points.

For some reason if the gui is clicked on the game goes into hang mode.

I have made it Clickable=false at the start of the game.

Can you see where the problem may lay?

cheers





#65
Hi

This is more of an annoyance than a major issue.

I have been deciding how to have my character move.

So, I changed the mouse graphic to a crosshair and have player move by mouse X.

I have noticed that if I happen to click the LH mouse button the player shakes for a moment.

RH mouse click ok.

Can you help stop this annoyance?

EDIT: Decided on left mouse shoot and it has cured the DT shakes.

Also, just as I'm here, I need to change cursor graphic when over a GUI (grounds) and has one button (Breadme).

Code: ags

function repeatedly_execute_always()
{
  GUIControl *gcat = GUIControl.GetAtScreenXY(mouse.x, mouse.y);
  if ((gcat == null) || (gcat.AsButton == null)) mouse.UseDefaultGraphic();
  else mouse.UseModeGraphic(eModeHand);
}


The cursor mouse graphic (walk/interact) is 233 and needs to change to 26 whilst over GUI button and revert back to 233 when off GUI button.

cheers

steptoe



#66
Hi

I'm trying to put a max characters allowed in a textbox by user. (Max length will be 15)

TextBox  name is: tbInput1

Code: ags

if(tbInput1.Text.Chars[tbInput1.Text.Length 15])


I get:

GlobalScript.asc(863): Error (line 863): Parse error in expr near 'tbInput1'


My code at the moment is:

Code: ags

function Button11_OnClick(GUIControl *control, MouseButton button)
{
   if (tbInput1.Text != "")
 
 {
   player.Name = tbInput1.Text;
   gName.Visible=false;
   player.Name = tbInput1.Text;
   Leddie.Text = String.Format("%s", player.Name);
   ggameonfo.Visible=true;
}
  else
  Display("You can't be the Nameless One!");
}


Or could I use a variable of some sort?

Looking for the right solution, can you help?

cheers



#67
Hi

Which do you think is the best option for games and why?

This does not relate to music, sounds effects and without a separate speech pack.

A: Text speech only
B: Audio speech only
C: Both

I'd be interested in your views on this subject.

Cheers



#68
Hi

EDIT: Solved

Code: ags

  player.Name = tbInput1.Text;
 Leddie.Text = String.Format("%s", player.Name);

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


I'm trying to put an inputted players name onto a label that displays.

A character Say /Display with inputted players name 0k it's just getting it to display onto a label.

Have tried:

Code: ags
 Leddie.Text="%s";


And

Code: ags
 Leddie.Text ="%s, player.Name";


help appreciated

cheers

#69
General Discussion / Annoying AGS issues.
Sat 10/12/2011 12:07:12
Hi

Have you come across any annoying AGS issues such as an object not changing after changing its sprite number and compiling and when you look back in the room the object has not changed and shows original sprite or adding a new object does not show on screen etc etc etc?

If you have had any annoying issues then please share so we all know what issues can at times happen.

cheers

#70
Hi


My version (v3.2.1 Build 3.2.1.111) has a new gui when QuitGame(1);

It does not seem to have the gui listed as it did in previous versions where you could amend RestartYN gui.

How do you edit this version if its possible?

cheers
#71
Hi

rather than making separate cspit move distance for every room I'm trying to bunch together for various rooms except a few where the cspit move is higher up the screen.

Like if player is in 1,2,3,4,5 this distance but if player is in 6 this distance.

When I go with below code it does not seem to make any difference in Room 6.

Example:
Code: ags

{  // SHOOT cspit distance in these rooms = 140
  
  if ((keycode == eKeySpace)&& player.Room==1  || player.Room==2 || player.Room==3 || player.Room==4) 
{
    ginfo.Visible=false;
    cEgo.LockView(5);
    cEgo.Animate(0, 3, eOnce, eBlock);
    cEgo.UnlockView();
    Wait(60);
    Spit=(Spit -1);
    cspit.FollowCharacter(null);
    cspit.Transparency=0;
    cspit.Move(cspit.x + 0, cspit.y - 140, eBlock, eAnywhere);
    cspit.Transparency=100;
    cspit.FollowCharacter(cEgo, FOLLOW_EXACTLY);
    cspit.Move(cspit.x + 0, cspit.y + 140, eNoBlock, eAnywhere);
}
   // SHOOT cspit distance in these rooms = 190

  else if ((keycode == eKeySpace)&& player.Room==6) 
{
    ginfo.Visible=false;
    cEgo.LockView(5);
    cEgo.Animate(0, 3, eOnce, eBlock);
    cEgo.UnlockView();
    Wait(60);
    Spit=(Spit -1);
    cspit.FollowCharacter(null);
    cspit.Transparency=0;
    cspit.Move(cspit.x + 0, cspit.y - 190, eBlock, eAnywhere);
    cspit.Transparency=100;
    cspit.FollowCharacter(cEgo, FOLLOW_EXACTLY);
   cspit.Move(cspit.x + 0, cspit.y + 190, eNoBlock, eAnywhere);
}


Double thanks for any help

cheers




#72
Hi

Somehow trying to only add to score just once.

Code: ags

   if (cspit.PPCollidesWithO(obottle1))
  
  {  

   aBOTTLE_SMASH3.Play();
   aCheer.Play();
   object[11].Visible=true;
   
 if (Game.DoOnceOnly("bottle1"))  // does not work
   
    Points=(Points +1);
   object[0].SetView(7, 0);
   object[0].Animate(0, 4, eRepeat, eNoBlock);
   cspit.Move(cspit.x + 0, cspit.y + 120, eNoBlock, eWalkableAreas);
   cspit.FollowCharacter(cEgo, FOLLOW_EXACTLY);
   
}
[/coder]



#73
Hi

I can't see the problem I obviously have in this script.

Scenario: 5 bottles. Hit each bottle and it changes view and another object is visible.

You receive 1 point (Point Int) every time a bottle is hit (when other object becomes visible.)

You should receive 5 points for all bottles smashed.

Unfortunately it misses a point.

It does not matter in which order you do the problem of points still prevails, it misses giving one point.

Hopefully someone will sort out my cockup  ::)

Code: ags


function room_RepExec()
{
  
   cspit.FollowCharacter(cEgo, FOLLOW_EXACTLY);
 
  
  if(object[11].Visible)
  if (Game.DoOnceOnly("bottle1b"))
{
    Points=(Points +1);
  
}
  if(object[12].Visible)
  if (Game.DoOnceOnly("bottle2b")) 
{
    Points=(Points +1);
    
}
  if(object[13].Visible)
  if (Game.DoOnceOnly("bottle3b")) 
  {
    Points=(Points +1);
    
}
  if(object[14].Visible)
  if (Game.DoOnceOnly("bottle4b")) 
{
    Points=(Points +1);
    
}
  if(object[15].Visible)
  if (Game.DoOnceOnly("bottle5b")) 
{
    Points=(Points +1);
  }
  
  
  
   if (cspit.PPCollidesWithO(obottle1))
  
  {  

   aBOTTLE_SMASH3.Play();
   aCheer.Play();
   object[11].Visible=true;
   object[0].SetView(7, 0);
   object[0].Animate(0, 4, eRepeat, eNoBlock);
   cspit.Move(cspit.x + 0, cspit.y + 120, eNoBlock, eWalkableAreas);
   cspit.FollowCharacter(cEgo, FOLLOW_EXACTLY);
 
}

 if (cspit.PPCollidesWithO(obottle2))
 
  
{
   aBOTTLE_SMASH3.Play();
   aCheer.Play();
   object[12].Visible=true;
   object[1].SetView(7, 0);
   object[1].Animate(0, 4, eRepeat, eNoBlock);
   cspit.Move(cspit.x + 0, cspit.y + 120, eNoBlock, eWalkableAreas);
   cspit.FollowCharacter(cEgo, FOLLOW_EXACTLY);
   
}
   if (cspit.PPCollidesWithO(obottle3))
 
  
{
    aBOTTLE_SMASH3.Play();
    aCheer.Play();
    object[13].Visible=true;
    object[2].SetView(7, 0);
    object[2].Animate(0, 4, eRepeat, eNoBlock);
    cspit.Move(cspit.x + 0, cspit.y + 120, eNoBlock, eWalkableAreas);
    cspit.FollowCharacter(cEgo, FOLLOW_EXACTLY);
   
}
    
 
 if (cspit.PPCollidesWithO(obottle4))

  
{
   aBOTTLE_SMASH3.Play();
   aCheer.Play();
   object[14].Visible=true;
   object[3].SetView(7, 0);
   object[3].Animate(0, 4, eRepeat, eNoBlock);
   cspit.Move(cspit.x + 0, cspit.y + 120, eNoBlock, eWalkableAreas);
   cspit.FollowCharacter(cEgo, FOLLOW_EXACTLY);
   
}

 
 if (cspit.PPCollidesWithO(obottle5))
 
  
{
   aBOTTLE_SMASH3.Play();
   aCheer.Play();
   object[15].Visible=true;
   object[4].SetView(7, 0);
   object[4].Animate(0, 4, eRepeat, eNoBlock);
   cspit.Move(cspit.x + 0, cspit.y + 120, eNoBlock, eWalkableAreas);
   cspit.FollowCharacter(cEgo, FOLLOW_EXACTLY); 
}

  if (Spit == 0 && Points < 9)
 
  {
   aRound2.Play();
   cEgo.Say("I need to produce more spit!");
   object[0].Move(200, 92, -1, eNoBlock, eAnywhere);
   object[1].Move(200, 92, -1, eNoBlock, eAnywhere);
   object[2].Move(200, 92, -1, eNoBlock, eAnywhere);
   object[3].Move(200, 92, -1, eNoBlock, eAnywhere);
   object[4].Move(200, 92, -1, eNoBlock, eAnywhere);
   
   
   object[16].SetView(8, 0);
   object[16].Animate(0, 4, eRepeat, eNoBlock);
   object[16].Move(185, 110, 2, eBlock);
   object[15].Visible=false;
   object[16].Move(173, 110, 2, eBlock);
   object[14].Visible=false;
   object[16].Move(153, 110, 2, eBlock);
   object[13].Visible=false;
   object[16].Move(134, 110, 2, eBlock);
   object[12].Visible=false;
   object[16].Move(117, 110, 2, eBlock);
   object[11].Visible=false;
   object[16].Move(20, 97, 2, eBlock, eAnywhere);
   
   
   SetNextScreenTransition(eTransitionInstant);
   cspit.ChangeRoom(4);
   cEgo.ChangeRoom(4);
 
}




 if (cspit.PPCollidesWithO(oback))
  
{
   int ran=Random(2);
     
    if (ran == 0)
    
  {
    
      aComeoneddie.Play();
      aBoo.Play();
      
   }
     else if (ran == 1) 
  {
     aNochance.Play();
     aBoo.Play();
      
 }
     else if (ran == 2) 
  {
     aRouting.Play();
     aBoo.Play();
      
 }
     else if (ran == 3)
   {
     aNochanceagainst.Play();
     aBoo.Play();
      
}}





#74
Hi

***SPIT BOY*** Tester now wanted!

SPIT SPIT SPIT is the nature of this game!

Not so much an adventure but a few rounds of sweaty, adrenalin rushes!

Don't play if you have spitting/smoking phobias, are a priest, a nun or a real prudel!

You play as YOUR NAME as you enter the World Championship Open Spitting Contest having practiced for years on the neighbors cat!

Produce as much spit and flem as you can and try to spit over bottles, tins etc etc to be the ultimate World Spitting Champion!

View your 'Points' position on the leader board throughout the game and watch as you rise to top spot, if you're lucky!

Get to the top of the leader board at the end of the match and walk away with the World Championship Spitting Title, £100,000 and a giant gold trophy!

To train you had to achieve a heavy smokers cough to which you are now at your supreme best with lungs like coal sacks full of 'gold watches'!

If you find yourself 'drying up' there are some cigarettes and a big cigar to make you cough and produce huge flems!

You are last to Spit and it won't be easy to win though, you are up against stiff spitting competition especially from Gobby Dave who is leading!

You have hecklers who hate your every spit,  people who are behind you all the way as well as a groupie or two to help you on!

So, muster all the flem you can and get ready for the World Championship Open Spitting Contest!!

Beware, if you run out of spit your turn will be over and you will probably lose the contest!
----------------------------------------------------------------------------------------------------------
There are a number of rounds to compete in.

Spit and hit/smash stationary, moving and swinging objects.

Working in a small area is a trial by itself  ;)

Testers always wanted if they have the time.
------------------------------------------------------------------------------------------------------------
Techs:

320 X 240
16 Bit Colour
Arcade style
Full sounds of commentator, cheers, crys, flobs etc
Game Progress: 20% 30% 40% 50% 60% 70% 97%
Expected Completion Date: Mid Jan 2012

All scenes subject to some changes as game progresses.

Leader board:

   









Updates will be shown in posts below.



#75
Hi

I am trying to incorporate  player follows mouse position and fire via left click.
IE character follows mouse (player has own walkable area.)

At the moment it fires by spacebar which could still be used.

Can get the if mouse x / y do something etc its just getting player to follow.

Not quite sure where to find info as can't see in manual.

Could you help please?

#76
Hi

I have just started using Easy Pen G5 Tablet.

It makes for precision drawing and techniques.

However, I wish the pen would actually draw on the tablet instead of all eyes on the Screen. Plus the tablet area is larger than say 320 x 240.

I find that drawing a basic sketch on thin paper and tracing over it with the pen works ok.

Do you know of a better way?

cheers

steptoe

#77
Hi all you mathematical  geniuses

Is it possible and if so how to do the following:

Int A: adds £ per correct answer and displays total on Label A.

IE £1000 per question correct = 5 correct answers= £5000 displayed on Label A.

After which:

Int B: Label B takes the total of Label A and x 3 to it and displays it (£15000) on Label B.

Meanwhile:

Int C: Label C takes the total of Label A and / 5 from it and displays it on Label C.

IE Label A £5000 Label B £15000 Label C 1000

Grateful if anyone can help

cheers




#78
Hi

this may be a noob question but I have not used text input boxes before and thought it would add to my armoury for future use. I have been reading up about them but need some assistance.

So far:

Code: ags

player.Name=Game.InputBox("What is your name?");
cEgo.Say("Your Name is %s.", character[EGO].Name);
cEgo.Say("Come with me %s", character[EGO].Name);
cEgo.Say("You and I have a lot to talk about %s.",character[EGO].Name);


which works fine and I can display Players name anytime.

However, imagine it to be a password for example and you have to type the correct password in else Display Incorrect password. You have 3 chances to get it right else automatically go back to last room and try again or something else for example.

The Input box is naturally reset.

Also, changing Characters Name (Not script Name). Example: Roger(cEgo) to players name based on input text box.

This is a loose idea and any guidance would be appreciated.

:o


#79
Hi

Welcome to the MONEY CAB: The only cab that pays YOU!

Based on the TV game show 'Cash Cab'.

Win lots of money by answering questions in the Money Cab.

You have the distance of your journey to answer questions and win money.

Get a question wrong or run out of question time and you get a Strike, 3 Strikes and you get booted out and leave with nothing!

If you get stuck you can do a Mob Shout and someone will try to help you.
You can only do a Mob Shout once.

There are 3 Modes to choose from at the start.

Money Won, Strikes, Time and Distance are displayed.

Beware, not for the feint hearted!

Are you full of trivia?

CONTOLS: USE MOUSE POINTER TO CLICK ON ANSWER BUTTONS AT THE BOTTOM.

To QUIT Game: click the X image or press Alt + X on keyboard.

There is no Saving or Loading.

This is a very short game so get those questions right!

This game is 2nd party untested so please PM (NOT here) any bugs/problems found.

This game remains open for a deluxe game.

cheers





Download:

http://www.adventuregamestudio.co.uk/games.php?category=&action=detail&id=1500&refresh1322572724




#80
Hi

I am trying to disable the keyboard for every room.

The below code in each room works but does not stop Alt + x, though it does disable Esc, F save, F Load etc.

In each Room I have:

Code: ags

function on_key_press(eKeyCode k) {

  // kill all keyboard functionality
  ClaimEvent();
}


Even tried this Top of Global:

Code: ags

bool kb_on = true;


and with this in Global:

Code: ags

function on_key_press(eKeyCode keycode)

{
  if (!kb_on)   // and with if (kb_on)
  {
    ClaimEvent();
    return;


Can you help?

Cheers




SMF spam blocked by CleanTalk