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

#1161
Ah, how do I make one?
#1162
Advanced Technical Forum / Re: CCS plugin help
Tue 20/09/2005 01:21:55
That DID help! Thanks!

I went home and ended up with a hybrid of your code and my original to get it working the way I want, so I finished up with this:

Code: ags

function RandomCommand(int CharID, int numb, int weight, int xa, int ya, int xb, int yb) {
Ã,  int x1 = RandomEx(xa, xb);
Ã,  int y1 = RandomEx(ya, yb);
Ã,  string randompath;
Ã,  if (Random(1) == 0) StrFormat(randompath,"MOVE:%d,%d;WAIT:%d;",x1, character[CharID].y, weight);
Ã,  else StrFormat(randompath,"MOVE:%d,%d;WAIT:%d;",character[CharID].x, y1, weight);
Ã,  ccCreateCommand(numb, randompath);
Ã,  ccExecuteCommand(CharID, numb);
}

//in repeatedly_execute
if (ccIsExecuting(BILLA) == 0) RandomCommand(BILLA, 6, 250, 550, 370, 785, 440); //for each character


It works beautifully so far with no problems, so thanks heaps!!
#1163
If I knew what a module was, maybe I could... module. But I don't, unfortunately... is it something easy that wouldn't require much more complicated scripting than what I have there? Because that's pretty much as good as it gets with me. I could try to update the code for 2.7 though.
#1164
Glad you liked it. I love pretty much everything he does but I really think Ray has come out well. It's easily one of the best things he's ever done so I like pimping it. `Cunt` is definitely not to everyone's taste but it made me laugh, mostly I think because I know the guy behind it and I can appreciate what he was trying to do with it.
#1165
Well, I'm sure there's a much neater way of doing it but that's how it ended up for me. It's probably a little messy because it was changed bit by bit as I came up with new ideas, not just written from scratch.
#1166
Okay, this may not be important at all but this code took me a long time to get right so I thought I'd post it just in case anyone wanted to do what I did.

Basically, in my RPG, when you walk into a town, I wanted the town name to fade in and then fade out. I also wanted a little flowery border to animate into existance before the word has faded in and then animate again out of existance after the words have faded out. On top of all this, I needed it all to be non-blocking.

I initially used to script given in the manual under the fade topic, but it relied on a Wait command which was obviously blocking. After a few days, I managed to come up with this which, although it may be hideously intindy scripting, works beautifully.

Code: ags

function FadeName (string areaname, int disptime) {
  displaytime = disptime;
  SetGlobalInt(26, 0);
  CentreGUI(36);
  CentreGUI(37);
  gTownname.Y-=50;
  gTownnameborder.Y-=50;
  SetLabelText(36, 1, areaname);
  gTownname.Transparency = 100;
  SetButtonPic(37, 0, 1, 0);
  GUIOn(37);
  GUIOn(36);
  AnimateButton(37, 0, 35, 2, 2, 0);
  SetTimer(8, 30);
}

//in repeatedly_execute_always:
/////////////////// NAME FADE ////////////////////////
if (IsTimerExpired(8)) { //START
  trans = gTownname.Transparency;
  SetTimer(10, 1);
}

if ((IsTimerExpired(10)) || (IsTimerExpired(9))) {
  if ((trans==0) && (GetGlobalInt(26)==0)) { //WORD COMPLETELY VISIBLE
    SetTimer(9, displaytime);
    SetGlobalInt(26, 2);
  }
  else if ((trans==100) && (GetGlobalInt(26)==1)) GUIOff(37); //FINISH - ALL OFF
  else if ((trans==100) && (GetGlobalInt(26)==2)) { //WORD COMPLETELY INVISIBLE
    GUIOff(36);
    SetGlobalInt(26, 1);
    AnimateButton(37, 0, 35, 3, 2, 0);
    SetTimer(8, 30);
  }
  else { //FADING IN OR OUT
    if (GetGlobalInt(26)==0) trans--;
    else if (GetGlobalInt(26)==2) trans++;
    gTownname.Transparency = trans;
    SetTimer(10, 1);
  }
}


So in the room script, I would have, for example: FadeName ("BORONIA", 200);

There's a bit of new and a bit of old script in this because I currently use a hybrid of them both (I'm always trying to use more and more of the new). Obviously, you would need to customise this for your own timing and word position etc. The other advantage to this code is that you can control the speed of the fade.

If this is useful for anyone, well, I'll be pretty happy. It's working wonderfully for me.

If noone thinks this is useful then please delete the topic!
#1167
Quote from: Yutzster on Sun 11/09/2005 20:15:17
"cunt".

Funny you should mention that now. A great artist friend of mine is in the middle of a fight to be able to sell his comic, `CUNT`at a local comic convention here.

Here`s the comic if anyone's interested: http://chickennation.com/cunt/

Here`s the debate: http://forums.pulpfaction.net/viewtopic.php?t=992
#1168
Nope, they're all definitely in the right place. They were all associated with the correct view, and set off at the right time... I double checked everything I could think of.

I'll go home today and try to replicate the problem, but I mean, if it isn't happening to anyone else, it doesn't really matter.
#1169
Quote from: simulacra on Tue 13/09/2005 15:22:19
Kinoko: I never said that I didn't like the mainstream because it was mainstream. I dislike it because it is so predictable. I realise that there are many people that like the comfort of predictability, but I get bored of it whether it is music or games. The french sociologist Pierre Bourdieu has written an interesting book: "On television", which has lots of thoughts on why mediums are locked into the mainstream. The main theory is that investors want to be sure that the product is received well to get revenue. I'd say the same goes for many indie designers - you want to make something that you are sure works, not spend your time on some strange experiment.

Yeah, I know. I honestly wasn't having a go at you, it was just that what you -said- made me think of people who ARE like that, so I was having a go at them in general.
#1170
General Discussion / Re: The Ashes 2005
Wed 14/09/2005 05:26:49
Pff. Anyone who's played Cirque knows what I think of cricket. *yawn*

Even so, I was slightly sad to hear the Aussies lost something. Then again, what's one loss from... what, 17? Enjoy it, Brits ;)
#1171
Erm, I was indeed, but for some reason it's not showing up properly in my original post (stupid Japanese laptop).

That may not have been the problem, but that's what it seemed to be. No other objects had this problem, only the ones I set as initially off, then tried to turn back on.

As I said, no problem as I worked around it but I just wondered if this was a bug or not...
#1172
I'm not currently using any of the betas, just the previous full version of AGS (whatever that is, I'm a bit sleepy and typing from work so I can't check), but I've noticed something lately I can't explain. Some of my object based scripting wasn't activating and all I can put it down to was when the object was NOT checked as `object is initially on/visible`. I was then using object[ x ].Visible = true; to turn it on, but it didn't... er, turn on.

Is/was this a bug? Because if not, I have no idea where I've gone wrong. I worked around it so I don't have any particular problem, but I still wonder why that seemed to be happening.

[edit by scorpiorus to fix object[ x ] ]
#1173
Nice! It was an interesting read, bspeers. But, could you clarify what trope and hack mean, as well as exactly what the distinction between them and cliche is? I've never ever heard of trope before.
#1174
I hate that show. It's so for Buffy fans who want to think they like a show like Futurama, but they don't, because it isn't, it's crap.

It was so, so very important I made that clear.
#1175
General Discussion / Re: Great game music
Tue 13/09/2005 04:33:56
Katamari and Vib Ribbon are both excellent examples! I play that music all the time at home.

As far as things people haven't mentioned... I'd also recommend Donkey Kong Country 2 - it might sound stupid, but that music is just gorgeous. Lufia 2 had an amazing theme tune, I really think it's even better than the FF theme in terms of ... well, everything that make a theme tune good. Terranigma's music has a great ability to evoke emotion in me.

Oh, oh, oh... whatever you do, don't forget to mention Skies of Arcadia. If you haven't played it, go out and get it. Gorgeous, gorgeous music.
#1176
Quote from: simulacra on Mon 12/09/2005 18:44:34
I agree. The mainstream bores the hell out of me. I never listen to the crap they play on the radio, as I have heard that song thousands of times before. The same with goes for games.

Clichés are for the fools who are not smart or experienced enough to figure them out.

As said by Squidworth from the Spongebob movie: "You can't fool me! -I- listen to public radio."

I think the biggest cliche of all is people talking about how they don't listen to popular music, etc. There's nothing wrong with that, but if your motivation for that is because you want to appear outside the square, then I'd rather be a Britany Spears fan any day.

As has been said before, cliches are fine. That word gets banded about all over the place as the horror or all horrors, but it just means that something is used a lot. I'll occasionally say that something in a game is `SUCH a cliche` but when I say that, I mean that on top of being a cliche, it has nothing else to offer. Whereas 99% of other cliches used out there don't get a mention from me because they're used well.

My RPG is gonna have, yes, a cliches storyline. Saving the world. If people don't like it, that's fine. If they don't like it BECAUSE it's a cliche and for no other good reason, then I feel sorry that they're going to go through their life missing out on tonnes of great experiences for the fear of being seen as `mainstream`.

...and dare I point out the irony of these people that avoid popular music and instead favour, *ahem*, `alternative` music.

The bottom line is that it doesn't matter WHAT you like, as long as you like it because you like it, you enjoy it, it makes you happy, whatever.
#1177
Sure, you can do some nice things in paint, but you can do those same nice things in a more complete paint program too, as well as a billion other things.

If you're after actual critique... it's a nice pic, but it'd be even better if you tightened the lines up, made that arm come from a realistic direction and added some shading (solid line shading). Try it, and I bet that pic will look 10 times better! :)
#1178
Argh, the dreaded `football/soccer` debate.

I'll fix this for everyone - please just shut up about it.

Some people will always call one game soccer, some people will always call it football. Some people will always hate that others call it football, some people will always hate that others call it soccer.

You know how much it matters? It doesn't. This discussion happens about a million times all over the world at any given time. Is it ever resolved? No. The people that call it soccer still call it soccer and the people that call it football still call it football. Everyone gets annoyed at each other and nothing is achieved.

What would be nice is if people could just accept it. You don't have to like it, but just try to read which particular game people are talking about from the context, and accept that that's the way they talk about the game, and probably most other people from their culture too.

If I talk about `football` in Australia, other Australians know I mean either AFL or rugby league. At least my friends do, so thats all that matters. That we understand each other. If I talk about the same game with people overseas, I specify. If I hear non-Australians, or Australians who are hard core soccer fans say 'football', I typically know they mean what I call `soccer`, or whichever football game is typically played in their country.

Demanding people from other cultures use the term you do, whether or not it's the original term or the most commonly used, or whether or not it's the most logical, is just pointless.

We all know the way it works so let's accept it and let the people taking part in this thread talk about their respective games.

Christ, people :) The debate is just too old. Please, please let's leave it alone this time.
#1179
Faaantastic :D Great thread title at an appropriate time.
#1180
Thanks for that, LN. It's nice to hear what's happening in the Aussie news. If that's true... *sniff* makes me feel proud.
SMF spam blocked by CleanTalk