
It worked! Thanks so for helping me!
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 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);
}
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
}
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));}
}
Quote from: Danman on Thu 17/12/2009 18:00:19
To Blueangel my game is for a Christmas present for my sister and I am going
post it too so if everybody says your game is rubbish you can just give them my link to my gamethen they
won't complain 8) .
(Coz my game is so bad my friends said it looked like 5 year old's drawing)
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.
// 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]
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.032 seconds with 14 queries.