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

#4481
If you use 2.61 beta 3 or later then you can do something like this

function room_a() {
  // script for room: Player enters screen (after fadein)
int i=0;
WaitMouseKey(40);
while (i<800) {
  RawDrawImageResized(-i, -((i*5)/8), 1, 320+(i*2), 200+((i*5)/4));
  i=((i*100)/99)+1;
  Wait(1);
}
WaitMouseKey(500);
QuitGame(0);
  
}

function room_b() {
  // script for room: Player enters screen (before fadein)
RawDrawImageResized(0, 0, 1, 320, 200);
  
}




The complicated arithmetic is just there to stop the zoom slowing down as you get closer (which is what happens if you have i=i+1).

If you want to zoom as if the camera was moving over water to your island, then  of course, the horizon will change relative to the island which will take a lot more effort...
#4482
I enjoyed Myst, but Riven I didn't: it just took too long to wander around pulling levers, etc. Similarly to Ali, I play games with my wife and so Adventure games are about the only games you can do that with: anything real-time is out. We enjoyed Myst both but got stuck with Riven too quickly (although admittedly, we do get stuck quite easily, like with that sign in GF). We've got Exile, but not played it yet.

Myst has a great story concept, I thought. Kinda like Neverending story. And I loved the libraries of books: gave a great atmosphere.

The things that are wrong with Myst and more so with Riven are not down to its first-personness, as Naranjas illustrated by pointing out similar problems with Syberia. Syberia had some redeeming features, too, such as use of the mobile phone.
#4483
Quote from: Radiant on Wed 31/03/2004 13:16:23
- nasty trick with operator precedence...
 in C and C++,    6 - 3 - 2 = (6 - 3) - 2  = 3 - 2 = 1
 In AGS, however, 6 - 3 - 2 =  6 - (3 - 2) = 6 - 1 = 5
And the same principle applies to division. You probably don't want to change this because of backwards compatibility, but maybe a compiler warning is in order.

I generally make no assumptions about operator precedence or evaluation order and always use loads of brackets to guarantee things go the way I want.

Quote
- why isn't there a setinvproperty() function? I wanted to give each item a score_when_picked_up property, which is set to zero after being used the first time. [note to SSH, I'm using an array now so it's not a problem]
I would also like to see writeable properties: I think it's on the todo list, though.

Having maybe come across as having a strop at Radiant in the past, I'd like to apologise for being grumpy. Some of these little things he points out are things I've noticed but worked around and forgot to mention, but all would be nice to see fixed. Its good to have someone new come to AGS who obviously knows his way around  programming in general and point out all those little idiosyncracies that we've got used to. If only all "n00bs" were like this... a gentleman and a scholar!

Oh, and Leylines looks like it rocks from what I've had a chance to look at so far, although I wish I could run it windowed...
#4484
1. You can import these masks from a thrid-party tool with any level of zoom you like...

2. How about capturing a screenshot image to disk, loading the image in as a sprite, and displaying it with RawDrawImageScaled...

#4485
Critics' Lounge / Re:Plot for my new game.
Tue 30/03/2004 19:11:50
As a fellow Egyptian-inspired game designer, I would say the following things:

1. Do lots of research on Egyptian mythology. Google will find you loads. It makes any inventing you do yourself sound more authentic if it is based on research. Also, watch the Mummy and Stargate movies and see if there are ideas there that you think work or don't work: don't copy them but be inspired.

2.  It might be an idea to make your Pharoah based on the real one Khafre, as many people think his face is the same as that of the Sphinx... which would tie in with him being trapped in it

3. "Wizards" doesn't sound egyptian to me... "Warlock" might be better or "Priest" or "Avatars" or "Manifestations" ...

4. Rain has to be Britain... ;D

5. Fire might be better as some volcano, such as Etna in Scicily

6. Ancient Egyptian  names tend to have meanings, such as "Beloved of Amun", so look at examples of real ancient names.
#4486
I suspect that quite a few functions will assume that things like the viewport can't change during blocking... which was true until rep_ex_al came on the scene!
#4487
Ah yes, for a full debounce:

while (IsButtonDown(LEFT)!=0) {Wait(1);}
while (IsButtonDown(LEFT)==0) {Wait(1);}
while (IsButtonDown(LEFT)!=0) {Wait(1);}

For more elegant, If you don't mind a timeout and keypresses closing it too, try:

WaitMouseKey(500);
#4488
Well, if you want any click to close it and you dont mind blocking:

while (IsButtonPressed(LEFT)==0) {
 Wait (1);
}

#4489
check for the GUI_MDOWN event in on_event and the just GUIOff?

Out of interest: Why don't you use the "Display messages on GUI" option on the main options page? This is explained in the help file.


#4490
So, which version is (TOP) AL Gore using? Maybe he just needs to upgrade to solve his problem...
#4491
Hah! You don't even know what is the capital of Elbonia...
#4492
Creep, your game is awesome! Even though I have no information whatsoever to go on, I know  that it rox0rz my b0x0rz!

My only tip would be, ignore these so-called "moderators" and this so-called "Vel". Dont let them hamper your creativity and FREEDOM OF SPEECH by letting them insist you read the forums rules or so-called "Read Me First" threads. Rulez suxorz!

#4493
Quote from: Radiant on Mon 29/03/2004 16:49:43
Oh and one more detail I noticed. When I set a character's speed to zero, the game crashes. I figured it would have been a nice way of stopping that character from moving, and am now using another workaround.

Shame that CJ didn't implement a function called StopMoving()... oh hang on...  :P

Spoiler

Since no-one seems to get irony these days, there IS a function called StopMoving
[close]

EDIT:
I hope I don't come across as agressive to Radiant, btw... I'm just trying to solve his problems... albeit in a sardonic way.

And Vel... that just doesn't make any sense, sorry. It's not important: so why ask, eh? And disabling the mouse is top-notch? Anyway, I'm sure you can check for the cursor being off at the start of on_mouse_click...
#4495
Competitions & Activities / Photoshop Monday
Mon 29/03/2004 13:49:38
Photoshopping isn't drawing a completely new image -- It's editing images to create a new image, such as editing one image or combining several images.

Also, you don't have to specifically use Photoshop -- Paint Shop Pro, MSPaint, or any other programs can be used.

-------------------------------------

This week's challenge is:

Excuses!

Why has your game not been released yet? Were you beset by floods, kidnapped by beautiful aliens who wanted you to help perpetuate their species or just too darn lazy? Produce photographic evidence of your excuse (or, if you are not behind schedule on a game (yeah, right) ) then you coudl try doing someone else's excuse (not thinking of anyone in particular, Mark)

I might get round to doing an example myself at some point...
#4496
The Rumpus Room / Re:Sam and Max Cancelled!
Wed 24/03/2004 16:00:39
We're all spouting hot air unless we can produce some market research to back uus up. Anecdotal evidence is hardly proof. So, here's the only real eveidence I could find on the web, from 2001 in Australia:

http://oldwww.roymorgan.com/polls/2001/3379/

Weirdly, they have video games and computer games as separate categories.... wonder what that means. But anyway, it show that there's plenty of old people playing games, and that will mean that they are buying them too.

There's probably more market research data out there if you're willing to pay for it...
#4497
The problem is that GUI buttons can be set to do one of three things: nothing, run script (ie go to interface_click) and set a cursor mode. The walk button sets cursor mode withou trunning the script. You'll need to go to the GUI editor and change the walk button to run the script instead.

Also, don't forget that right-click cycles the cursor mode, so you'll need to change that code somehow. It might be easier to put something in repeatedly_execute like:

if ((GetCursorMode()==MODE_WALK) && (GetGlobalInt(10)==1)) {
SetCursorMode(5);
}
#4498
The AGS manual is the .chm help file...

The online version you refer to is just an HTMLified version of the helpfile for v2.4. AGS has changed a lot since then.

Oh, and there's a T in "Chapter", btw  ;)
#4499
Drawn last week so probably doesn't count, but NOTHING is cuter than my daughter, although my sprite of her lacks a certain degree of accuracy. As featured in "Alba the Explorer" game...
#4500
General Discussion / Re:New baby
Wed 24/03/2004 09:56:17
Congratulations. There's nothing like being a father. Now, just don't let them play flashbax until they're 26...
SMF spam blocked by CleanTalk