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

#1
Code: ags

function hHotspot19_UseInv()
{
   if (call == 0){
if (player.ActiveInventory == iYkey){
cJason.Walk(420, 333, eBlock, eWalkableAreas);
cJason.LockView(25);
cJason.Animate(0, 2, eOnce);
PlaySound(11);
Display("Unlocked.");
dialog[0].SetOptionState(4, eOptionOffForever);
dialog[7].SetOptionState(4, eOptionOffForever);
SetGlobalInt(min, 0);



}
}





if (call == 1){
if (player.ActiveInventory == iYkey)
{
cJason.Walk(420, 333, eBlock, eWalkableAreas);
cJason.LockView(25);
cJason.Animate(0, 2, eOnce);
PlaySound(11);
Display("Locked."); 
cJason.UnlockView();
SetGlobalInt(min, 1);

}}
if (call < 2) {
  call += 1; 
 }
  if (call == 2) {
    call -= 2;
    
 
  }
}

function hHotspot19_Interact()
{

if (call == 0){
cJason.Walk(420, 333, eBlock, eWalkableAreas);
cJason.LockView(25);
cJason.Animate(2, 2, eOnce);
PlaySound(1);
Display("It 's locked.");
dialog[0].SetOptionState(4, eOptionOn);
dialog[7].SetOptionState(4, eOptionOn);
cJason.UnlockView();
}


if (call == 1)
{
cJason.Walk(420, 333, eBlock, eWalkableAreas);
cJason.LockView(25);
cJason.Animate(0, 2, eOnce);
player.ChangeRoom(6, 0, 0);
PlaySound(0);

}

}


- It all works, but if I use another inventory item on hotspot 19, the game takes the command changeroom and goes to room 6, if  I use a cup, lamp wick or something else(because only key must work on door and not the other inventory items). Can anyone say what this is or what I did wrong.? I made a door you must unlock(you can lock it and unlock it) with inventory(yellow key) and then use the interaction(hand) to open door and go to room 6, but you can use any type of inventory now on hotpsot and you will find yourself in room 6 and that 's  not what I want.
#2
Hi, got a problem again, using AGS Editor .NET (Build 3.1.1.67)
v3.1.1, December 2008.

Problems with x and y value. When character changes room and I want them on x200 y300,
he appears on other coordinates.?? With some rooms character appears where he needs to be, sometimes I need weird coordinates to have him in place. Has this happened before?
Can this be happened during upgrade from ags 2.71??

I 'm dutch so my english maybe not so very good. Hallo allemaal daar bij bigbluecop.!! :D
#3
AGS Games in Production / The floor
Mon 26/01/2009 23:05:18
My game is called the floor. Jason wants to escape this weird and also familiar place.

Screenshots over here



http://www.esnips.com/web/agsgamemakinganadv

Because, I 'm still working on it, characters can change.


Scripting -  25 %
Story - 100 %
graphics - 25 %
puzzles - 25 %
music/sound - 50 %

Overall completement  -  25 %



Please leave comments, what you think about it.
#4
hi got a problem with game can 't load it in editor.
It says: Root element is missing.

There is a big error but i can 't copy and paste details.
I haven 't delete anything.
#5
I can only use this function once..

function dialog_request (int x200)   {{}}

I can 't get a new - function dialog_request  (int x300)   {{}}

It says: variable already defined.

Maybe some little help with this?? I couldn 't get many help from the help in the program, or I don 't understand something what 's been put there.

run-script X
Runs global script function "dialog_request", with X passed as the single parameter. This allows you to do more advanced things in a dialog that are not supported as part of the dialog script. The "dialog_request" function should be placed in your game's global script file, as follows:

  function dialog_request (int xvalue) {
    if (xvalue == 1) {
     // your code here
    }
    else if (xvalue == 2) {
     // other code here
    }
  }

#6
Error: Onvoldoende geheugen.
Version: AGS 3.0.2.43

System.OutOfMemoryException: Onvoldoende geheugen.
   bij System.Drawing.Bitmap.Clone(Rectangle rect, PixelFormat format)
   bij AGS.Editor.SpriteImportWindow.previewPanel_MouseDown(Object sender, MouseEventArgs e)
   bij System.Windows.Forms.Control.OnMouseDown(MouseEventArgs e)
   bij System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
   bij System.Windows.Forms.Control.WndProc(Message& m)
   bij System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   bij System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   bij System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   bij System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)



onvoldoende geheugen is dutch means not enough memory. I 've got a fast pc of course with 2 gb ram memory............
SMF spam blocked by CleanTalk