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

Messages - Mazoliin

#21
I'll say: Go for it.

I find it quite fascinating to see how other people do their work and you stopped just when the action was about to happen. I don't think this video alone would be to much use, you're only painting over a pre-existing picture, but I'm sure that the next one will be much more interesting.
#22
Character.ChangeRoom()
Use the command either with the room edges or a region.
#23
Well, I read the manual and it states that CompareTo returns an int, not a bool, so leasson learned: Read the manual.

And you're code seem to compleatly lack anything that actually removes the item when it's found, so even if it do find the correct one, it doesn't remove it.
So because I'm such a nice man, here you go:
Code: ags

void LoseQuest(String text){
  int p;
  while (p < ListBox1.ItemCount){ //Change ListBox1 with the name of your listbox
    if (ListBox1.Items[p].CompareTo(text, false) == 0){ //Change ListBox1 with the name of your listbox
      ListBox1.RemoveItem(p); //Change ListBox1 with the name of your listbox
      return;
    }
    p ++;
  }
}


I belive that if you only had read in the manual about listbox items, then you should have been able to solve this your self.

[Edit]
Sounded a bit harsh there, not what I intended.
#24
try change
Code: ags

if (quests.Items == text){

to
Code: ags

if (quests.Items[Temp].CompareTo(String.Format("%s",text), false) == true) {
#25
AGS Archives / Re: AGS Archives
Sat 07/11/2009 11:06:40
Copy the AGS game page, it has everything and a little bit more :=
#26
General Discussion / Re: StarCraft anyone?
Fri 30/10/2009 14:45:20
This was fun ;D
To bad I can't put up much of a fight... yet!
#27
General Discussion / Re: StarCraft anyone?
Fri 30/10/2009 13:26:13
Ah, didn't known it had to be done at their site.
Thanks Peder.
#28
General Discussion / Re: StarCraft anyone?
Fri 30/10/2009 13:20:57
Can't seem to create an account.
#29
General Discussion / Re: StarCraft anyone?
Fri 30/10/2009 13:13:33
Loved to if I'd only get it to work :P
#30
General Discussion / Re: StarCraft anyone?
Fri 30/10/2009 08:19:43
I might get the free version and give it a go, though it was ages ago that I played an rts, and StarCraft especially :P
#31
Ben: Sorry, no secret ending, so you can stop looking for it.

And it's a tight draw between FSI & Gord10, but I'll vote for... Gord10! That game is so true to reality.

#33
Do you have a custom script for the normal mouse clicks?
If so, maybe there's something there that's the problem.

And you could try setting the ActivInventory manually and see what happens.
#34
You need a bool! The problem with your first try is that it gets called every game loop

Code: ags

bool Running;

repeatedly_execute(){
  If (mouse.Mode == eModeRun){
    if (Running == false){
      cEgo.StopMoving();
      cEgo.SetWalkSpeed(4, 4);
      cEgo.ChangeView(7); 
      cEgo.Walk(mouse.x, mouse.y)
      Running = true;
    }
  }
}
#35
If you only need to do this once you can use Game.DoOnceOnly
Code: ags

if (cEgo.ActiveInventory==ibug){
  if (Game.DoOnceOnly("HaveBug")) cEgo.ChangeView(10);
}  
else if (cEgo.ActiveInventory!=ibug){
  if (Game.DoOnceOnly("NoBug")) cEgo.ChangeView(2);
}


But if you need to be able to use it more then once you just need a variable (I asumed withbug is a int):
Code: ags

if ((cEgo.ActiveInventory==ibug)&&(!withbug)){
  withbug= 1;
  cEgo.ChangeView(10);
}  
else if ((cEgo.ActiveInventory!=ibug)&&(withbug)) {
  withbug= 0;
  cEgo.ChangeView(2);
}
#36
Or use extender functions.
Code: ags

function Gravity(this Character*, int ground, int pixelFall)
{  
  if (gravOn == true) {
    if (this.y < ground) {
      this.y += pixelFall;
    }
  }
}


Then you can write
Code: ags

player.Gravity(313, 3);

cEgo.Gravity(313, 3);
#37
The face looks fine. But it's rounder than the 3/4 view and that might be why you feel it looks odd.

Put some more shadow on the lowest part of his right leg and make the hands bigger.
#38
Look's like you should place the function code after the on_mouse_click function in the global script, not inside it, after.
#40
Let me just say that your brackets seem to be all over the place. I don't know if they're responsible for the error but it should be fixed:

Code: ags

#sectionstart repeatedly_execute  // DO NOT EDIT OR REMOVE THIS LINE
function repeatedly_execute() 
{
  { //What is this doing here? <------------
  if (IsKeyPressed(9)) {
  if (pressingTAB == false) {
    if (gInventory.Visible == false) gInventory.Visible = true;
    else if (gInventory.Visible == true) gInventory.Visible = false;
  }
  pressingTAB = true;
	}
	else pressingTAB = false;
	} //And this <------------
{ //Not to forget this one <------------
  bool _A;
  String mm = "";
  int v;

  ==== CODE ===

  if (v != old_mouse_view) {   // only change if necessary
    mouse.ChangeModeView(mouse.Mode, v);
    old_mouse_view = v;
		}
	} //Here's one more <------------
}
#sectionend repeatedly_execute  // DO NOT EDIT OR REMOVE THIS LINE


Unless, of course, I'm missing something and is just acting like a idiot...
SMF spam blocked by CleanTalk