-
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
function oMonster_UseInv()
{
if (cDanny.ActiveInventory == iGun)
{
DisplayAt(84,105,300, "Danny shoots the monster.");
FadeObjectOut(oMonster, 100, 1);
}
}
Quote from: Domithan on Wed 01/06/2011 20:26:01
(Also, by my CRRRRAAAAAZZZY American time, you all have a while to finish up your entries!)
Quote from: Hudders on Tue 31/05/2011 21:29:44Quote from: Ascovel on Tue 31/05/2011 09:49:12
So it could be something like... Draculator II: Heart of the Swarm
We should make it a sequel to a non-existent original. With lots of references to things that never happened.
Quote from: ddq on Tue 31/05/2011 02:24:58Quote from: Atelier on Mon 30/05/2011 21:00:12
Try this. Also, make sure you use the right amount of equal signs:
= sets, == checks
For example:Code: ags if (oFruit.Visible == true) Display("I'm checking whether Fruit is visible with two equal signs");
You should probably read up on some tutorials for AGS or for C-like programming languages in general.
function hFruitTree_Interact()
{
if (oFruit.Visible == true) Display("There is no need to climb the tree.");
else {
Display("There is no need to climb the tree. Besides, there isn't any more ripe fruit to pick anyway.");
}
}
if (oFruit.Visible == true) Display("I'm checking whether Fruit is visible with two equal signs");
//player enter room, or whatever
oFruit.Visible = false; //Here I'm setting a variable because it's just one equal sign.
if oFruit.Visible = true; {
Display("There is no need to climb the tree."); }
if (oFruit.Visible = true) Display("There is no need to climb the tree.");
By continuing to use this site you agree to the use of cookies. Please visit this page to see exactly how we use these.
Page created in 0.426 seconds with 15 queries.