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

#461
That's not a bottle... it's a paddle!



(bless The Gimp for good built-in wood textures...)
#462
Okay. For an unspecified project of mine, I've been toying around with custom "lighting" functions - as in, having one function for drawing holes into an all-black GUI and one for covering up these holes again once it's time. The former works just fine... the latter doesn't seem to run at all. It's probably soul-crushingly simple, but I just can't see what's wrong with the code. So, uh, some help please?  :-\

The relevant code:

game_start

Code: ags

tempsprite=DynamicSprite.CreateFromExistingSprite(gGui1.BackgroundGraphic);

int MNB=0;
while (MNB<MaximumLightSources) {
lightR[MNB]=-1;
MNB++;}

//Other crap



repeatedly_execute

Code: ags

jiji=0;

while (jiji<MaximumLightSources) {
  
player.SayBackground(String.Format("%d", jiji));

if (lightR[jiji]>-1) {  
  lightT[jiji]--;
  if (lightT[jiji]<=0) RemoveLightSource(jiji);
}

jiji++;
}

//Some stuff about calculating sound[0]
temprad=FloatToInt(sound[0]*2.0);

PlaceLightSource(player.x, player.y, temprad,  1);

//Some stuff about movement



The functions in question

Code: ags

function PlaceLightSource(int x, int y, int radius, int time) {

int countIndex=0;
while ((countIndex<MaximumLightSources)&&(lightR[countIndex]==-1)) countIndex++;

DrawingSurface *lightmap=tempsprite.GetDrawingSurface();

lightX[countIndex]=x;
lightY[countIndex]=y;
lightR[countIndex]=radius+1;
lightT[countIndex]=time+1;

lightmap.DrawingColor=COLOR_TRANSPARENT;
lightmap.DrawCircle(x, y, radius);
lightmap.Release();
gGui1.BackgroundGraphic=tempsprite.Graphic;
}


function RemoveLightSource(int lightSourceNumber) {

DrawingSurface *darkmap=tempsprite.GetDrawingSurface();

darkmap.DrawingColor=33;
darkmap.DrawCircle(lightX[lightSourceNumber], lightY[lightSourceNumber], lightR[lightSourceNumber]+1);
darkmap.Release();
gGui1.BackgroundGraphic=tempsprite.Graphic;

lightX[lightSourceNumber]=-1;
lightY[lightSourceNumber]=-1;
lightR[lightSourceNumber]=-1;
lightT[lightSourceNumber]=-1;
}
#463
I believe you're looking for the elusive ChangeRoom command.
#464
I think the format of the space pack graphics (.pcx, right?) isn't supported in 3.1 anymore. You'll need to convert them back to, say, .png if you want to use them.

And read the tutorial, especially part 6.
#465
I think you messed up with returns, comments and spelling of the commands. This should do the trick:

Code: ags

@S  // dialog startup entry point
return
@1  // option 1
jen:"Oh who are you?"
jen:"you made me jump, but Now I can see you must work here by your uniform"
ego:"Well you might call it a working holiday I suppose"
ego:"Im here for the experience you might say I can,t wait to go home though!"
Jen:"Well...Im  Herd number 001 I have been reared up on this farm but I don,t really know about the things you are talking about"
return
@2  // option 2
jen:"meat? did you say chicken meat?"
jen:"you can not be serious! I thought we were being raised to be servants to the great master at the Mannor house"
ego:"well perhaps you will become a servant I shouldnt worrie"
jen:"Yes Yes but please tell me about this chicken meat?"
ego:"well since I have spilled the beans on this issue I will tell you."
ego:"You my dear and all the other chickens are being bred because many customers come here to enjoy eating chicken"
ego:"you didnt know did you!"
jen:"GULP..."
jen:"Oh my, I guess Im on the menu then?"
jen:"I have to say,I wish I didnt know about this now!"
option-off-forever 3
stop
@3  // option 3
jen:"oh ...well ok ?"
option-off-forever 2
stop
#466
Well, ultimately it's their work, so they can do with it whatever they want. Of course you shouldn't remove your game after sinking so much time and passion in it - maybe temporarily pull it off and work on the issues people adressed, but delete it? Unless it's "A Nigger's Revenge", you shouldn't go there.

And the "exposure to criticism from a position of power"... well, there we have the good old review panel discussion again (which, funnily enough, gave all my games the same crappy rating, regardless of quality differences and without explanation most of the time. ::)).
#467
General Discussion / Re: Skepticism
Thu 27/11/2008 18:48:25
I shall answer that with a clear, dedicated "maybe". ;)
#468
General Discussion / Re: Skepticism
Thu 27/11/2008 18:35:40
Quote from: loominous on Thu 27/11/2008 16:34:34
Again, just want to bring in some nuance. God can be scientifically disproven, if his attributes are of the right kind.

... which is exactly where the trouble lies. Since you can give him/her/it/them any attribute whatsoever - including unmeasurable ones - how could you determine whether or not it exists?

Oh, and yes, happy festivities.
#469
I suggest a clever combination of these:

player.AddInventory
player.LoseInventory

And maybe this:

player.ActiveInventory

It's basic stuff, really. Where to put it depends on which AGS version you're using, but that's something that should definitly be covered early in the tutorial.
#470
Do the tutorial. Inventory items and their usage are explained just fine there. Which is to say, RTFM.
#471


Hail Eris.
#472
I think it basically means he wants to make the player lose an inventory item and obtain another one in return, which is about as basic as it gets.
#473
In your AGS directory, there should be a mystical artifact known as the "help file". Open it, and search for an ancient prophecy known as the "Tutorial" amongst the secret society of those who AGS. Follow the directions given there, and thou shalt achieve enlightment.

That said, welcome to the forums, and good luck with your game!  :)
#474
Now this was a pleasant surprise! It's been a long time since I actually got excited about a videogame in production, AGS or not, and I'm REALLY looking forward to this one... so hurry up some! ;)

Oh, and I guess I should finally bookmark this thread...
#475
Well, I have to say your setting DOES sound quite intruiging, but most people on these forums seem to be either atheists or agnostics (including myself), so you might have a hard
time finding "real" believers to help you. We'll be more than happy to assist you in improving your own work if you post over at the Critic's Lounge, though. ;)
#476
General Discussion / Re: About Dreams...
Sat 22/11/2008 19:21:41
Weirdest thing for me is that my dreams always come with a "GUI" of some sort. As in, when they're starting to turn into nightmares, I usually find myself thinking "fuck this" and "quitting" the dream via a pop-up menu, thus waking up. Maybe I've played too many computer games. No lucid dreams, sleep paralysis or alien abductions here, though.
#477
I don't know what a banana phone is, and I don't have the energy to go look it up, but I thought I'd post anyway.
#478
General Discussion / Re: ART GAME / II
Thu 20/11/2008 12:12:01
No, no, no, no, no, NO! Stop misinterpreting what you can't understand, you shallow, plebeian duffs! If you had actually bothered to put that tiny brain of yours to use, you would have figured out this is actually a satire of Freud's theories - in particular, those of the libido, the destructo and the process of separation of the anima from the mother figure during the dissolution of the Oedipal complex! Shame on you!  >:(
#479
These guys would love it.

... yeah, all nuts.
#480
How do you know it's actually composed by skepticists (spelling may vary), and not just an establishment to lock them away in a place where they can't do any harm? HUH?  :=

About the game: It would depend on the viewpoint. I'm all for open, mature, philosophical adventure games, but if you're more aiming at "spreading God's word"... then no.
SMF spam blocked by CleanTalk