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

#101
I have a GUI button that I use as a switch. If the players life falls below 0 I want the game to check to see if the button is visible an if it is I want it to restore 50% of life(HP) then I want the button to become invisible. However if the button is not visible I want the player to die.

Code: ags

if(playerHP <= 0){
   if(phinoxbuff.Visible == true){
    phinoxbuff.Visible = false;
  playerHP += 50;
  }
  
  else if(phinoxbuff.Visible == false)
  {
 CountDown.Stop();
 Dave.SayAt(8, 167, 320,"Dave:Is this it?.");
adeath.Play(eAudioPriorityHigh);
  Dave.Tint(204, 0, 0, 50, 100);
 chris.Tint(204, 0, 0, 50, 100);
 gameover.TweenTransparency(0.1, 100);
Dave.TweenTransparency(1.5, 100);
  chris.TweenTransparency(1.5, 100);
  aBoss1a.Stop();
  gameover.Visible = true;
  gameover.TweenTransparency(2.0, 0);
  Wait(19);
  RestartGame();
  }
}
  }
#102
 Well now you can just search AGS app in Facebook and Shizzam! I can see every thing right inside of facebook.

Click here to facebook:[☆]

Click here to see the page in full screen:[□]

Posted from AGS app v1.0 via facebook

Rate!: using this ★
#103
Page on facebook example

Is there a way to get a FB like button in your Sig or on you post?
#104
General Discussion / DOS Emu for wii
Wed 13/04/2011 21:26:48
Is it possible to play AGS games on the wii? It has a hacked program that plays DOS game?
#105
at the end of my game I have a video that plays. However it just freezes the game and you can't even exit it.
#106
General Discussion / I can't decide?
Sat 09/04/2011 23:49:10
I have a character to make however I can't decide on the design.


here is what they look like.

I just can't really choose one. the left will take a bit longer to make however it's cooler then the one on the right. The one on the right is easier to make however it is rather plainer then the one on the left.
#107
                                I took a 2 day break from my last game and made this.
                   
It is a short 1 room Demo.
                                                   

Help the Engineer named Torisutian reach floor 2 by solving the puzzles in floor 1.

Download here
#108
I found this font and I wanted to know how could I add this to my game?
#109


PMQ.Legends: [Dave & Christen] VS Enemy[Ifrit]


I don't think I am ready to come out with a demo just yet. However I would like to hear what people think about the battle look. :)


Things to add/fix.


Indicator for Preforming action or casting spell.

Indicator for HP+/HP- for player and enemy.

fade/drop the Hp indicators then Visible = false;

hurt action(player attacked. enemy attacked)

Slowly dieing view and sound.


PMQ.Legends: [Dave & Tifa] VS Enemy[Shiva]





#110
For some reason one of my GUI's wont show in this room.

When the cursor goes over the enemy it displays a GUI
Code: ags

//Here is the code I use for the fight scenes. 


  Object *cat = Object.GetAtScreenXY(mouse.x, mouse.y);
  Object *oat = Object.GetAtScreenXY(mouse.x, mouse.y);

if(Shiva.X){
  if(Shiva.Y){
  enemyHP.Visible = ((cat != null) || (oat != null)); // where gOver is the name of the GUI you want to have turned on or off
  target.NormalGraphic = 521;// Shiva icon change
  OE.NormalGraphic = 183;
  
}
}
strengths.Text = String.Format("HP: %d", playerHP);//Menu health
    pairHP.Text = String.Format("HP: %d", playerHP);//pair health
   
   enemystats.Text = String.Format("HP: %d", EnemyST);//Enemy health



Now there is an X amount of room with fights. Each room contains this code in the Repeatedly execute area.
Each room it works in.

Another real fight room.


First beta fight.


Reason's why
The object is about as big as the room do to the animations used for it.
   - I tried setting the baseline to 200. = fail
   - I tried setting other obj's baseline to 1. = fail
   - I change the name Shiva in the script to eye(hence the eyes on the enemy) and the gui shows accept it just stays on.









#111
Is it possible to control 2 characters with one mouse?
#112
For some reason I cant get the inv item on a obj. However I I can use the other command option on it like interact.

I thought something was blocking me for touch the Obj but I was wrong. The _UseInv was taking from another room which it worked in. If nothing else in the code works th "if" line + thing inside should work just fine.




Code: ags

function Shiva_UseInv()
{
  //Attack
if(Dave.ActiveInventory == com1)
{
    Dave.ChangeView(28);
    Dave.Animate(2, 3, eOnce, eBlock, eForwards);
   
  EnemyST -= 5;
   Dave.ChangeView(26);
   Dave.FaceObject(Shiva, eBlock);
  //Attack
 
  tifa.ChangeView(16);
    tifa.Animate(2, 4, eOnce, eBlock, eForwards);
 playerHP += 7;
 tifa.ChangeView(10);
   tifa.FaceObject(Shiva, eBlock);
  //----------------------------------------------------------
}
  
  if(EnemyST <= 0){
    adeath.Play(eAudioPriorityHigh); //Play death sound
  Shiva.TweenTransparency(1.0, 100);
 
  GiveScore(125);
  Shiva.Visible = false;
  HUD.TweenTransparency(0.5, 100);
  HUD.Visible = false;
  mouse.EnableMode(eModeTalkto);
  mouse.EnableMode(eModeWalkto);
  mouse.EnableMode(eModeLookat);
  gGui5.Clickable = true;
  party.Clickable = true;
    gGui5.TweenTransparency(0.1, 0);
    party.TweenTransparency(0.1, 0);
    gGui5.Visible = false;
party.Visible = false;

Dave.Say("Yeah we did it! Let's head back ok.");
//Play fanfare.
mouse.Visible = true;
Spoils.Visible = true;
qu3.Visible = false;
tifa.ChangeRoom(9, 312, 1206);
}
  //timer death---------------------------------<><><>

  
  //--------------------------------------------<><><>
  if(playerHP <= 1){
  playerHP -= 10;//player lose HP (Place here)
if(playerHP <= 0){
 CountDown.Stop();
 Dave.SayAt(8, 167, 320,"Dave:Is this it?.");
adeath.Play(eAudioPriorityHigh);
 Dave.Tint(204, 0, 0, 50, 0);
 tifa.Tint(204, 0, 0, 50, 0);
 gameover.TweenTransparency(0.1, 100);
Dave.TweenTransparency(1.5, 100);
  tifa.TweenTransparency(1.5, 100);
  aBoss1a.Stop();
  gameover.Visible = true;
  gameover.TweenTransparency(2.0, 0);
  Wait(19);
  RestartGame();
  
}
  }
}
function Shiva_Interact()
{
  Dave.SayAt(8, 167, 320,"Dave:Is this it?.");
//Attack
    Dave.ChangeView(28);
    Dave.Animate(2, 3, eOnce, eBlock, eForwards);
   
  EnemyST -= 5;
   Dave.ChangeView(26);
   Dave.FaceObject(Shiva, eBlock);
  //Attack
 
  tifa.ChangeView(16);
    tifa.Animate(2, 4, eOnce, eBlock, eForwards);
 playerHP += 7;
 tifa.ChangeView(10);
   tifa.FaceObject(Shiva, eBlock);
  //-------------------------
}
#113
General Discussion / PAX east
Sat 12/03/2011 05:53:19
Hey is anyone going to the PAX east convention thing?
#114
I am using the counter script and I just dont understand it. well half of it.

Code: ags

// room script file
int playerHP = 100;//always set this here
int EnemyST = 120;//always set this here


function room_Load()
{
  Shiva.Visible = false;
tifa.ChangeRoom(12, 73, 125);
  EnemyST = 50;//always set this here
  Dave.AddInventory(com1);
  tifa.AddInventory(com2);
gGui5.Visible = false;
party.Visible = false;
 commands.CharacterToUse = Dave;
HUD.Visible = false;
mouse.DisableMode(eModeTalkto);
  mouse.DisableMode(eModeWalkto);
  mouse.DisableMode(eModeLookat);
  //-------------------------------------------------------------
CountDown.SetTime(60, 2);//set Timer.

  Dnum.Text = "HH:MM:SS";

//---------------------------------------------------------------
}

function room_AfterFadeIn()
{
  HUD.TweenTransparency(0.1, 100);
    gameover.Visible = false;
  gameover.TweenTransparency(0.1, 100);
  Shiva.TweenTransparency(0.1, 100);
  Dave.SayAt(8, 167, 320,"Dave:Tifa, Your okay.");
tifa.SayAt(8, 167, 320,"Tifa:Dave, I'ma lot stronger then I look remember.");
  Dave.SayAt(8, 167, 320,"Dave:Ha, Like I would that.");
tifa.SayAt(8, 167, 320,"Tifa:Dave what is that light?");
  Dave.SayAt(8, 167, 320,"Dave:It's that last bit of light in this time.");
tifa.SayAt(8, 167, 320,"Tifa:time?");
  Dave.SayAt(8, 167, 320,"Dave:It's a long story. But where is the darkness.");
tifa.SayAt(8, 167, 320,"Tifa:?.");
  Dave.SayAt(8, 167, 320,"Dave:It's the last bit of light and it still looks bright as day.");
tifa.SayAt(8, 167, 320,"Tifa:Hold on. Looks like we got visitors.");
  aBoss1a.Play(eAudioPriorityHigh);
Shiva.TweenTransparency(2.5, 0);
Dave.SayAt(8, 167, 320,"Dave:Remember?");
tifa.SayAt(8, 167, 320,"Tifa:Just like old days.");
//play commence sounds
Display("commence!");
HUD.Visible = true;
HUD.TweenTransparency(1.0, 0);
  gGui5.Clickable = false;
  party.Clickable = false;
    gGui5.TweenTransparency(0.1, 100);
    party.TweenTransparency(0.1, 100);
}

function room_Leave()
{

}

function room_RepExec()
{
  //////////////////
 CountDown.Update(true);
//////////////////
// Character *cat = Character.GetAtScreenXY(mouse.x, mouse.y);
  Object *cat = Object.GetAtScreenXY(mouse.x, mouse.y);
  Object *oat = Object.GetAtScreenXY(mouse.x, mouse.y);
 // enemyHP.Visible = ((cat != null) || (oat != null)); // where gOver is the name of the GUI you want to have turned on or off
if(Shiva.X){
  if(Shiva.Y){
  enemyHP.Visible = ((cat != null) || (oat != null)); // where gOver is the name of the GUI you want to have turned on or off
  target.NormalGraphic = 182;// shiva icon change
  OE.NormalGraphic = 184;
  
}
}
strengths.Text = String.Format("HP: %d", playerHP);//Menu health
    pairHP.Text = String.Format("HP: %d", playerHP);//pair health
   
   enemystats.Text = String.Format("HP: %d", EnemyST);//Enemy health


//adding timer events--------------------------------------------------------------------------                       


  Dnum.Text = "HH:MM:SS";
if ((gameLoops < 0)){                                             _____PART X_____


 Dave.SayAt(8, 167, 320,"Dave:Is this it?.");
adeath.Play(eAudioPriorityHigh);
 Dave.Tint(204, 0, 0, 100, 0);
 tifa.Tint(204, 0, 0, 100, 0)
 Dave.TweenTransparency(1.5, 100);
  tifa.TweenTransparency(1.5, 100);
  aBoss1a.Stop();
  gameover.Visible = true;
  gameover.TweenTransparency(1.0, 0);


}
}
 CountDown.ShowOnLabel;

TimeToGameLoops(60, 2);
//testing timer---------------------------------------------------------------<><><>
}
function Shiva_UseInv()
{
if(Dave.ActiveInventory == com1){//Attack
    Dave.ChangeView(18);
    Dave.Animate(2, 4, eOnce, eBlock, eForwards);
   
  EnemyST -= 5;
   Dave.ChangeView(3);
   Dave.FaceObject(Shiva, eBlock);
  }
 //<Life or death> (2)If plaer is alive continue on below
//----------------------------------------------------------
   // commands.CharacterToUse = tifa;
  //tifa.SetAsPlayer();
  tifa.ChangeView(16);
    tifa.Animate(2, 4, eOnce, eBlock, eForwards);
 playerHP += 7;
 tifa.ChangeView(10);
   tifa.FaceObject(Shiva, eBlock);
  //----------------------------------------------------------
  
  
  if(EnemyST <= 0){
    adeath.Play(eAudioPriorityHigh); //Play death sound
  shiva.TweenTransparency(1.0, 100);
 
  GiveScore(125);
  Shiva.Visible = false;
  HUD.TweenTransparency(0.5, 100);
  HUD.Visible = false;
  mouse.EnableMode(eModeTalkto);
  mouse.EnableMode(eModeWalkto);
  mouse.EnableMode(eModeLookat);
  gGui5.Clickable = true;
  party.Clickable = true;
    gGui5.TweenTransparency(0.1, 0);
    party.TweenTransparency(0.1, 0);
    gGui5.Visible = false;
party.Visible = false;
  RemoveWalkableArea(1);
  
 

Dave.Say("Yeah we did it! Let's head back ok.");
//Play fanfare.
mouse.Visible = true;
gGui12.Visible = true;

}
  //timer death---------------------------------<><><>testing 
  if ((gameLoops < 0)){
  
  
 
  
  }
  
  //--------------------------------------------<><><>
  if(playerHP <= 1){
  playerHP -= 10;//player lose HP (Place here)
if(playerHP <= 0){
 CountDown.Stop();
 Dave.SayAt(8, 167, 320,"Dave:Is this it?.");
adeath.Play(eAudioPriorityHigh);
 Dave.Tint(204, 0, 0, 100, 0);
 tifa.Tint(204, 0, 0, 100, 0)
 Dave.TweenTransparency(1.5, 100);
  tifa.TweenTransparency(1.5, 100);
  aBoss1a.Stop();
  gameover.Visible = true;
  gameover.TweenTransparency(1.0, 0);
  
  
}



Basically I have a gui that has a timer label on it. The timer is consider as the DOOM counter. Which means when the time runs out the music stops and the player dies. See (Part X)

Now I have messed around with it for a bit and I just do know were to put stuff.
#115
I notice that alot of new games that are made was made in v2.72? Is there something better about that version?
#116
AGS Games in Production / PMQ: Avatar maker
Sat 26/02/2011 23:40:43
I was recently playing Kingdom hearts Recoded. It had a mini game were players are able to create there on avatars and play in mini games.

So I thought of importing something just like this mini game in my PMQ,Legends



p.s. These are two example imgs in one.
#117
I was looking for it and the link is down.

And newer link would be nice.
#118
At times I lose in tress in continuing any project I started even though it's going good.

I just wanted to know what do you do to keep yourself going?
#119
I thought of making two text windows and when I went to edit the script I for got how to set a text gui from in the game.

I have 2 buttons on a gui to change between the 2 diffident text windows because they have a different design. If you click button 1 it changes to text GUI(ID:7) and if you click button 2 it changes to text GUI(ID:13)

I know it's very easy but I cant find it at all.
#120
         
SMF spam blocked by CleanTalk