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

#4521
Its the "if (IsGamePaused ()) return;" that Radiant mentioned that stops keypresses being processed normally in that function, which is why it must go BEFORE that.
#4523
This morning, after watching "Dora the Explorer" with my daughter, I was singing the "Map song" to her, because she always gets excited when the map comes on. So I sang:

"Who's the one you need to know when you've got a place to go? What's my name?"

and she said "Map!" (well, more like "Ma(glottal stop)" but its good enough for me)

so I carried on,

"Say it again!"

and she said "Map!" again, so I continued to the second verse:

"Who can help you say, 'Hey, I figured out the way!' ? What's my name?"

and again she said "Map!" and again after "say it again!"....

Maybe it was a fluke, and it was also very funny so I phoned my wife to tell her and she did it again over the phone for her! And again various times today! And she's 16 months old today... I'm so proud of my clever wee girl.

Sorry to bore you all with my "proud father" stories. I also did some work on my next AGS game PMV which will be out by Sunday... (Sphinx postponed until PMV out)
#4524
tutano, here's your answer:

int double_click;

if (button==LEFT) {
  SetMouseCursor(GetCursorMode()); // stops wait cursor appearing
  double_click = WaitMouseKey(DELAY_TIMEOUT)*IsButtonDown(LEFT);
  SetDefaultCursor();
  if (double_click) {
    SetNextCursorMode();
  } else {
    ProcessClick(mouse.x, mouse.y,  GetCursorMode());
  }
}


#4525
Ummm. you asked something similar already and Scorpiorus replied with: http://www.agsforums.com/yabb/index.php?board=2;action=display;threadid=11868

which has some handy stuff for doing some of what you want. Basically with background speech it creates overlays, so you need to record which overlay was used and wait until it disappears before doing the next speech line. You also need to animate the chanracter manually. You''ll need a variable to track which speech line he's on, too, which you can set to a null value when you want to interrupt him and then  reset where your dialog completes.

#4526
Critics' Lounge / Re:Improved swamp
Wed 17/03/2004 14:21:58
Do you get trees growing out of waterlogged ground like that? Unless its a wood that has just been flooded, the trees seem wrong somehow...

I didn't think it was water at first, because:

a) there's too much texture on the surface: this would probably disappear if it was animated
b) the trees growing out of it... I'm sure that they wouldnt grow like that... a seed needs to land on soil to germinate.
#4527
It might work in some circumstances, but might crash in others.
That's because "string" is actually a pointer underneath. So you set your pointer to point at a constant string. This is not safe, especially if you try and chnage the string at a later point.
You shoudl use StrCopy(bar.desc, "hello world") instead.
#4528
Darn it. I had composed an excellent reply and then lost it.

Spy vs Spy is quite a well thought out but simple game, so it would be a good starting point. I doubt that the split-screen stuff is managable in AGS, though. Some of the gameplay relied on you being able to see the nother player setting traps, so I dunno how it would work if you couldn't see it. Count me in on the Spy vs Spy project, at least. (I was going to do this myself afetr I get the Sphinx demo out)...

As for the murder mystery: even if people had buddies, think about what happens in horror movies: there is always some trapdoor, revolving fireplace or something that separates the buddies in the buddy system. Now, if people know about these then they may try and avoid them, so maybe we need to work out how to make them unavoidable:  have them right next to entry/exits and fired randomly, or maybe the doors themselves open to different rooms each time you use them (have you seen/read Steven King's Rose Red?)

Also, the non-murderers need some motivation to move around. Maybe completing various tasks can let a player get some evidence that shows that another player didn't do it or even gives the player a bulletproof vest so that if the killer does try to kill them , the immediately win (because they survivie and yet know who the killer is). Also, maybe you need to reach the telephone to call the police once you know who the murderer is, but the killer might kill you too. The killer wouldn't be allowed to kill everyone though becuase then it would be obvious who did it, maybe there are limited murder weapons too.

Maybe a mechanism to frame other people too. And lockers to hide items in so people can't ask you what you're holding (where a refusal to show would be suspicious). Framing could maybe be the killer finding a "clue" item or something that both killer and a non-killer would want and then rendering it useless in some way, but the other player wouldn't know until they pick it up and leave fingerprints. Also, the murderer would have to dispose of the murder weapon somewhere, but then someone else could find it. Maybe there's a crowbar around to break into other people's lockers...

And if there's one NPC, the butler, who can also possibly be the killer...

Lots of possibilities here. But start with simple Spy vs Spy first... 320x200, roger sprites and concentrate on getting up to speed on gameplay and using the TCPIP stuff.

#4529
Let me tell you how to find out the answer to your question.

Load up AGS Edit
Press F1 to get the help file to come up
Go to the "search" tab
Enter "GUI button" in the search field and hit "List topics"
Go to the topic "GUI functions"
Now, click on "SetButtonPic"
Now the help file will give you lots of information about changing the button. You probably want:

SetButtonPic(YOURGUINAMEGOESHERE, 11, 1, 4);

That's what "RTFM" means. Read The Friendly Manual. If you can't even be bothered to look up the manual for one script command it doesn't bode well for the quality of your game. Why should we care about it when you don't yourself?
#4530
If a page can pass teh W3 Consortium's free validator then it should display OK in all modern browsers (ie, IE > 5.5, Netscpae 7, Opera 7, Mozilla Firefox and Classic, etc)

http://validator.w3.org/check?uri=http%3A%2F%2Fwww.twin-design.com%2Fhome.cfm

You don't even have a doctype so it can't get started! Tch! Some web designer  ;) :P
#4531
strings in structs have to be declared as
char desc [256];

#4532
It could be that Al-Queda are very very cunning. Why would they attack Spain? Well, Spain is the "Coalition against terror"'s biggest supporter that they could influence like this. In the UK, the main opposition party was also in favour of the war in Iraq, so they couln't swing an election like this. In the US, too many of the public were in favour of the war too and also the Democrats have only retrospectively been very against the war. But in Spain the main opposition were close enough to swing like this, and the population were massivley against their own government's involvement in the war. Now, human nature being what it is they couldn't be sure to have as large a swing as they did, but it was bound to have some effect if it was known that Al-Queda were behind it. Like with September 11, they couldn't have been sure that the towers would collapse and kill so many, but they could be sure of causing plenty of deaths anyway.

Their next big attack won't be the same. London has put extra secuirty in the Underground, but I doubt that the next attack will be with aircraft or trains, or just before an election, or whatever. All these measures are closing the stable door after the horse has bolted. However, one thing is for sure: those countries that have been very vocal in supporting the US are going to be targetted. I'm not sure that if there was a "Pull out of Iraq and apologise for it" party that I wouldn't vote for it.

It's all very well saying that "We don't negociate with terrorists becuase if we acquiese, all the other terrorists will think they can succeed, too". But ultimately, there is a number of lives at risk that negates that logic. Funnily enough, "24" series 3 deals with that situation: President Palmer asks Jack to give the terrorists what they want, but in a way that it looks like he didn't. But if the terrorists can kill all of your population, simple maths shows that any future terrorists couldn't do anything worse and you must acquiescs. From there down, it's all shades of gray and the line gets drawn somewhere. Typically, small terrorist groups don't have that kind of power, but "terrorist" states can. People vilify the Vichy government, but would it have been better for France to fight until all its people were dead? Should the US have stayed in Vietnam?

I am angry with George Bush and Blair and Aznar for putting the UK and Spain in this position. The war in Iraq has increased terrorism in Iraq and throughout the world, so arguments about it saving lives are bunk.
#4533
It's never that simple, Barcik

http://www.theregister.co.uk/content/55/36245.html

Some things were perfectly clear
Seen with the vision of youth
No doubts and nothing to fear
I claimed the corner on truth
These days it's harder to say I know what I'm fighting for
My faith is falling away
I'm not that sure anymore

Shades of grey wherever I go
The more I find out the less that I know
Black and white is how it should be
But shades of grey are the colors I see

Once there were trenches and walls and one point of every view
Fight 'til the other man falls - kill him before he kills you
These days the edges are blurred, I'm old and tired of war
I hear the other man's words
I'm not that sure anymore

Shades of grey are all that I find
When I look to the enemy line
Black and white was so easy for me
But shades of grey are the colors I see

Now with the wisdom of years, I try to reason things out
And the only people I fear are those who never have doubts
Save us all from arrogant men, and all the causes they're for
I won't be righteous again
I'm not that sure anymore

Shades of grey wherever I go
The more I find out the less that I know
Ain't no rainbows shining on me
Shades of grey are the colors I see
#4534
BEST PHOTOSHOP THI(NGY EEEEVVVAAAHHHH!

Gilbert, that pic rulezorz!
#4535
Have you put anything in on_event? Or do you check for mouse clicks in your repeatedly_execute?

Can you put something in your repeatedly_exectute to change a GUI label with the value of GetLocationType(mouse.x, mouse.y) and then tell us what it says just before you click?

#4536
It seems that plenty of people have abandonded projects halfway through. I wonder if there should be a repository for the work they had done so far on them, as maybe someone else can pick up and run with them. If not the whole gamne then maybe a character, backgroudn, animation etc,

The easiest way to do this would be to save a game template (.AGT)... and post it here!
#4537
Maybe so, but you're going to get far more support for an independent Basque country than you will for a Basque communist coup... support meaning peoples hearts, minds and wallets. If there was an independent Basque country, then ETA support would diminish greatly and they might fizzle out. No doubt when Ireland eventually is unified (which will evantually happen democratically due to higher birth rates amongst republicans...) there will still be some extremists but their support will be tiny and they will be fighting their own poilce...

The greater problem is actually more liekly to be that any form of Basque independence would be done by referenda in Pais Vasco, Navarra, and any other region claimed by ETA. I wouldn't be surprised if some of those regions said "no" and so ETA would carry on the fight for those regions. Pretty much what happened when the northern counties of Ireland voted to stay in the UK...


#4538
There's an EDIT button int he forums, btw...

1. So JUST change the X and Y pos of your invisible character. It doesn't matter that he's not in the same room.

2. So change your main character's starting X and Y too. Or put a script in "before fadein" that sets player.x and player.y...

#4539
For goodness sake, those are turnips, not onions..
#4540
So, is the GUI pop-up modal? Is it transparent? Does it have an image in the background? Does the image have any transparent bits in it?

maybe it's related to the "* Fixed "Mouse moves over hotspot" running even if the mouse was actually moving over a GUI on top of the hotspot." bug that CJ fixed in beta 1?

SMF spam blocked by CleanTalk