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

#4921
I've noticed that most sprite commands don't work on a group of sprites. What I'd find useful is exporting a group of sprites to disk.
#4922
It seems to me that inactive users (e.g. 1-5 post people, or people absent for a lengthy amount of time) do not take up any bandwidth. That would be strictly the amount of data drawn from the agsforums site by whomever. So the obvious solution would be to delete threads that are both pointless and active (e.g. most of the non-topic forum, I'm afraid).
But didn't CJ say that computing power was in fact the problem? In that case the bottleneck would be an overloaded server, and a viable solution would be to delete a lot of old material to reduce database size. Old threads that are useful for reference could instead by stored as plain text rather than forum msgs, as that would take less CPU time to send.
Anyway I'm in favor of the paypal donation system to help CJ.
#4923
Advanced Technical Forum / Re: Flashing light
Wed 03/11/2004 16:50:57
If you need more frames, you should try using objects for the animation, rather than background frames.
To make the character go dark, use SetRegionTint, or maybe TintScreen.
#4924
Okay, I got a bit carried away with that. Sure, it's advanced math if you want (actually I'm a compusci major so we have a bit of a different definition there :) )
I wasn't talking differential equations, just talking vector addition / multiplication.

Anyway. While AGS can't do floating point (at least, not without a plugin), it can do fixed point. This basically means that you use integers, but in a different order of magnitude. Assume the screen is 320000 by 200000 pixels. Calculate anything you want in integers. Then divide everything by 1000 to get coordinates for the actual screen.

As to the file I/O... you're correct that AGS doesn't read textual numerical values very well. You could write them there as raw integers, then read them using FileReadRawInt() one after the other.
Or, I suppose, you could do FileReadLine into a string (assuming the line contains just a single value) then use StringToInt to put the numerical value into an array.

The string trick wouldn't work well, most AGS strings are capped at 200.

hth.
#4925
1. That would be basic math. You can do vectors without problems in AGS. If you're thinking of implementing, say, Asteroids (tm), that would certainly be possible.

2. That's not so hard, simply create an array of sprite numbers, and use SetObjectGraphic. Doesn't work with characters, but if need be you can reserve object #0 in each room.
#4926
Global ints are saved in save game files.
My guess is that something else is wrong with your code; maybe you could post a sample?
#4927
Hints & Tips / Re: Help with Larry Vales 1
Thu 28/10/2004 13:09:45
Okay...
iirc, you use the scissors to
Spoiler
cut off the dead guy's hair
[close]
, then
Spoiler
give it to the guy in the tunnel to use as disguise
[close]
.
#4928
If you wish to stay away from plugins...

1.in another language, say QBasic since it's pretty easy, calculate sines and cosines roughly like this:
Code: ags

pi = 3.1415927
open "sincos.txt" for output as #1
for i=0 to 359
print #1,sin((i * pi) / 180)
print #1,cos((i * pi) / 180)
next i
close #1


2.then, in the AGS global script, add variables something like this:
Code: ags

int sin[360], cos[360];

and use the file read/write functions (I'd have to look up the exact syntax) to read the sin/cos data from said file.
Voila! You'd have sin[8] and cos[44] etc. to use as a pseudo-function.

#4929
Well, okay, congratulations Edwinxie, as the only participant you have hereby won the contest.
You are welcome to write the next contest; I sincerely hope you will have more contestantsthan I did.
#4930
Hints & Tips / Re: Larry Vales
Mon 25/10/2004 10:42:35
Read the message board in the hall.

Spoiler

It tells you not to stuff grass in the air ducts because of fire hazard.
[close]

Spoiler

So do just that. Grab some grass outside and stuff in in the air duct.
[close]

Spoiler

Light it. Sprinkles go on, shower goes cold.
[close]
#4931
You could translate it into a Scottish accent, though.
#4932
Also, it would be a good idea to check if the room number is within range, because NewRoom'ing to an invalid room will crash your game.
#4933
Try starting from the 'sample game' template rather than the 'blank' template.

Or, otherwise, some graphics are missing (either in the inventory items section, or in the GUI that you're using for the inventory) so you must put them back.
#4934
Hi there,

sorry to bump myself, but did I do something wrong here? is the entry too difficult? have people grown tired of Puzzle Time contests? or something?
#4935
Advanced Technical Forum / Re: Walkable areas
Sun 24/10/2004 17:44:01
It's slightly complex. If you create an S-shaped path and have the character in the lower left and the destination in the upper right, then sometimes the character walks along the S, and sometimes it just walks straight into the direction of its destination, until it hits the end of the walkable area.
I believe a pathfinding algorithm is used, that times out after a while, after which time the best idea found so far is used.
#4936
ParseText is one of those functions that doesn't get called immediately; instead, it gets called if your current script finishes.
One way to deal with this is something like
Code: ags

  ...
  ParseText ();
  repeatparsetext = 1;
  ...


Then, in your rep_ex function, add
Code: ags

  if (repeatparsetext) {
     repeatparsetext = 0;
     ParseText ();
  }

#4937
Hints & Tips / Re: Quest for Orgy 1
Sat 23/10/2004 17:25:57
you need two parts of bamboo, both from Crispin's house
#4938
You could just give 'in' a standard response. After all, 'look in table', 'look in door' and 'look in sign' don't make a whole lot of sense.
#4939
General Discussion / Quests for Orgies?
Fri 22/10/2004 02:04:03
Hi there,

question - how many QfO games are there, anyway? I know of at least three different subtitles, "sodom, Graham and Gomorra", "So You Want To Be A Porn Star" and "So You Think She Was A Virgin" (sic)... I know of at least two different games, one being the one where Crispin sends you to rescue Rosella and you have to catch a fish to enter castle Daventry, the other being a one-room demo with a nude girl walking around. What's up with all that?
#4940
Hints & Tips / Re: Quest for Orgy 1
Thu 21/10/2004 14:02:02
Spoiler

Get spiderweb from Crispin's house, spin it at Hagatha's.
[close]
SMF spam blocked by CleanTalk