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 - Hobo Joe

#1
Here's my scripts (both in same room):

function hHotspot5_WalkOn()
{
cEgo.StopMoving ();
DisableInterface();
cEgo.SetWalkSpeed (8, 8);
cEgo.WalkStraight (cEgo.x, 170, eBlock);
StopAmbientSound(1);
PlayAmbientSound(1, 2, 255, 0, 0);
cEgo.ChangeView(2);
cEgo.Animate(0, 4, eRepeat, eNoBlock);
SetTimer(3, 80);

and

function room_RepExec()
{
if (IsTimerExpired(3) == 1){
  cEgo.Transparency = 100;
  object[0].Visible = false;
}
}

Problem is that the character and the object don't disappear. What gives?
#2
I don't know how best to explain what I want, so I made a video to show you.

http://www.youtube.com/watch?v=jfOxpOrbP0I

Looking for text in a game that can function like it does in the old KQ. Any help would be much appreciated.
#3
I'm trying to get a character to move around at random, but I only want him to move around within a certain area/set of coordinates. How would I go about doing this?
#4
I'm trying to do this:

function repeatedly_execute() {
  // put anything you want to happen every game cycle here

  if (GetGlobalInt (hungry)> GetGlobalInt (pee)){
    cEgo.Walk(74, 199, eNoBlock, eWalkableAreas);
    cEgo.FaceLocation(74, 160, eNoBlock);
  }
  else if (GetGlobalInt (pee)> GetGlobalInt (hungry)){
    cEgo.Walk(301, 199, eNoBlock, eWalkableAreas);
  }
 
}

So he'll walk one way if his "hungry" int is greater than blah blah yeah you get it. The problem is, I've set up the ints and what they do in the game start section, and the repeatedly execute here gives me a script error telling me that those ints don't exist. How do I fix this?

Also, how can I make an int that counts up slowly over time?
#5
Basically, what I'm trying to do is set it up so that if 2 particular graphical variables are less than or equal to 5, a third variable will be set to greater than or equal to 5. Having troubles. Here's my script:

SetGraphicalVariable("happy", Random(10));
SetGraphicalVariable("sad", Random(10));
SetGraphicalVariable("angry", Random(10));
if (GetGraphicalVariable("happy")<=6)
if (GetGraphicalVariable("sad")<=6){
SetGraphicalVariable("angry", (>=(5)));
}

I'm getting this error:

GlobalScript.asc(61): Error (line 61): Parse error: unexpected operator '>='

Obviously it doesn't like the >=, but I don't know what better way to put it in context or what else to try if it doesn't work. Help would be much appreciated.


EDIT: GAH! Wrong forum. ::)
#6
For a few weeks now, every AGS game I work on or play, winds up looking blurry, like it's got some kind of filter on it. I'm running them full screen in 320x200 mode, which is correct for each one I'm playing, so what's the deal? Help would be lovely. Thanks!

EDIT: It looks fine in windowed mode, which would be great if I were playing it on a DS or something. Help!
#7
I'm trying to figure out how to have a cat in my game that randomly switches rooms and moves around, occasionally stopping to clean itself and whatnot. I'm not entirely (or at all) sure on how to go about doing this. Any help would be much appreciated. Thanks!
SMF spam blocked by CleanTalk