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

#2321
Since this topic is back again, I just want to say once again how much I hate most of the titles that get mentioned in threads like these. Fuck bloody Manga Entertainment for bringing out the shithouse stuff for westerners to see and giving Japanese animation this image. My god, Ninja Scroll >_< ARGHHHH!!! My spine and internal organs are trying to escape my body just at the thought of it.

(OK, I'm over it now.)
#2322
Thanks, I can use Global Messages now and also control the x and y positioning, as well as width. The highlighted text thing isn't a big deal, it just would've been a nice feature.

I think for changing the speed I'll just create another function similar to this but with a Wait(5) line or something so I can use the slightly different function (like TypeLineSlow) when I need it.

I still have the problem with removing the text from the screen with a keypress so the next TypeLine can then play. At the moment, the first text runs, the box stays on screen and the second text window runs as soon as the first is done typing. I can't remove the boxes from the screens without using the RemoveOverlay lines (which are a bit annoying to have to type everytime so I'd like to incorporate the removal with a keypress into the global script).

Here's my global script:

function TypeLine(int message, int vspacing, int xpos, int font, int colour, int width) {
string line;
GetMessageText(message, line);

//declare local vars
  int length=0;
  int i = 0;
  string displayedline;
  int textid = 0;
//initialise vars , overdoing it a bit ;-)
  length = 0; 
  i=0;
  StrCopy(displayedline," ");
  textid = CreateTextOverlay(xpos,50,400,font,colour,displayedline);

          //get string length, to know how long the loop must run
  length=StrLen(line); //set string length
         //start loop
  while(i<length){
         // pick character at position "i"and stick it at the end of string "displayed line"
    StrFormat(displayedline, "%s%c", displayedline, StrGetCharAt(line,i));
         //set textoverlay as displayedline
    SetTextOverlay(textid,xpos,vspacing,width,font,colour,displayedline);

         // if a space is added to the string do not play a sound, else play a 'tick'
         Wait(1);
    if (StrGetCharAt(line,i) == ' '){
   }
   else{
        PlaySound(1);
    }
           //increase the loop counter
    i++;
  }
  return textid;
}



And here's the code in my room script:

TypeLine (502, 100, 50, 1, 3, 200);
TypeLine (503, 100, 50, 1, 3, 200);

Ideally, I'd like to keep what I need to type in the room scripts as the one line as it is now, and have the global script code modified to have the text stay on screen until a key is pressed, and then have the next TypeLine run.
#2323
That works fine, thanks.
#2324
The thing you have to realise is that you shouldn't put too much importance on advice that starts like, "Girls are like this..." because girls are people, and hence, different.

I'd like to say that girls will either like you or not, so you might as well ask her out now because fostering a friendship isn't going to get you anywhere. I can't say that though, because that's just my experience, and I know there are situations where anything would work. Just don't think of this as strategy. It's another person, and you have to look at your own situation and make a judgement, none of us here can tell you what to do without knowing the girl as intimately as she knows herself. Sounds wanky? Yes, but true, really. Relationship advice works in stories and sitcoms but in real life there are too many factors in a person and their circumstances to ever really be able to judge a situation.

I'd say just be cool and confident in yourself. Don't fake it, just try to be self confident and... well, if I can generalise a bit, most girls HATE it when a guy seems desperate, or that he needs to depend on you. I've always been attracted to people who have lives without me, not people who hang off of me. If you don't seem like someone concentrating on love, it will probably be a much more attractive quality than someone who's obviously thinking, "I wish I had a girlfriend". Just get on with life and the things you like, hobbies, etc. Telling her you make adventure games is good! ^_^ Show you have passion for things... unless she's a typical teenager, in which case you might want to act sarcastic and hate everything.

I also have to say that the bit about not talking about yourself for ages - GOOD ADVICE! I know a guy that does that and it's so utterly frustrating that he never even asks how I am, just tells me how he is. It's awful. Don't be like that.
#2325
These aren't displayed near the right edge. The text box is stretching far longer than the width of the text and basically goes across the whole top of the screen.
#2326
Yep, that offsets them, thanks.

Is there some glaringly obvious reason as to why the textboxes stretch horizontally off the right side of the screen?
#2327
Quote
//type lines and play sound of ticking machine
int line1;
line1 = TypeLine(" First Line", 5, 50, 1, 3);
Wait(60);
int line2;
line2 = TypeLine(" Second Line", 5, 75, 1, 3);
Wait(60);
int line3;
line3 = TypeLine(" 3rd Line.", 5, 150, 1, 3);
Wait(60);

//after a pause the text is removed again
RemoveOverlay(line1);
RemoveOverlay(line2);
RemoveOverlay(line3);

This is the code I was using in my room script. Taking away the "lineX =" lines and in lines now stops them from disappearing, so I guess that mystery is solved. (It does look stupid though, having text windows overlapping like that)
#2328
All these people getting it wrong one after the other is funnier than the quotes ^_^

There was something I just loved to death in Odysseus but I can't remember it off-hand. I'll edit later.

#2329
It -is- a good game, isn't it? I still don't get tired of replaying it every now and again because it's always challenging all over again. There are so many challenging puzzles that you forget them the next time around, and of course you can finish the game differently... very nice game.

(Not the best ever, though ^_-)
#2330
Advanced Technical Forum / Re: set talk view?
Fri 18/06/2004 17:52:50
Wow, that's a lot of run around when you could just use... this! ^_^

SetCharacterSpeechView (CHARID, int view)

#2331
Everytime one of these updates rolls around, it's like I'm in a world of "happy". All sorts of little niggley problems I forget about for the most part turn up fixed and I think, "Damn, wish I made my game with THIS version".

One day, I'm sending you a big cake, Puma! ^_^
#2332
Something glaringly obvious I just noticed.

The text 'types' out alright, but only line 1, and then line 2, and then line 3, all appearing on screen (at the same spot) seperately. Line 1 will disappear as soon as line 2 starts, and so on. I honestly didn't really notice that it was doing this before and it's not what the code is supposed to do. To me, it seems like xpos is having no effect and that would back up my earlier thoughts about exactly how xpos was working (because I just for the life of me couldn't figure out from the global script how it was coded). I'm not sure why each line disappears disappears though, but then again I don't understand that much of the script anyway.

Just thought I should mention this before it gets thrown into the archives when there's still something wrong with it.
#2333
This stuff should probably be in a hints section, though I know you thought it was a bug so .. ^_^

The paint remover thing gets a LOT of people. I had a lot of trouble with it. It turns out you have to 'open' the tin and THEN use the paint brush on the tin, and then use the paint brush on the blotch on the wall.

I can't remember what triggers the package delivery off-hand but I'll have a think about it. I'm sure someone else will know.
#2334
I swear, if anyone makes a Futurama game without a lot of game making experience and a FANTASTIC sense of humour, I -will- kill. If you do this, keep it on your harddrive and away from me because I am an irational purist.

I'd forgot about RON games though, that wouldn't be a bad idea if you can't think of a totally original idea yourself. It's definitely worth looking into.

I don't need to go into analysing what's funny and what isn't ^_^ Futurama and the Simpsons are two of the best things in life and both are funnier than I think the average person will ever get (and I'm talking about the kinds of people who say "Homer did some funny stuff the other night, hur hur." not implying that I'm a genius and I'm just sooo above your little minds). They're funny on so many levels it's.. it's just not funny. Though it is!

Excuse me for being frank, Farlander, but you're just taking things WAY too seriously. I get sick of people talking about Homer's "stupidity" when the joke isn't always that he's stupid, it's just the way the joke is told, the context, the unbelievability, the... a lot of things. It's not like going, "Hur hur... Homer is dumb. Dumb people are stupid. I'm going to go out and laugh at a spastic." A lot of the times, he isn't so stupid! There are a lot of different kinds of jokes and moments in the series it's hard to generalise. The series' today aren't a patch on the first 4 or so but I guess that's like everything. They still manage to write some great stuff into the newer episodes but on the whole, I think all long term fans of the series have to agree that it's lost that special something with a lot of the new writers and the fact that it has been going on for sooo long. DG is right though, don't get me wrong. Sometimes, that's exactly the reason we laugh at some of his ... er... I shudder to use this word but 'antics'.

...but back to my original point. Unless you're extremely well versed and experienced with AGS and you have above average writing skills and an impecable sense of humour, stay right away from my favourite shows >:) It's the same reason people who talk about making a new Monkey Island game get so many replies from people demanding screenshots and story ideas. It's important you don't fuck the things that people like up ^_^
#2335
Even though this post is related to the function discussed earlier (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=14733.msg179671#msg179671) I thought I'd post this seperately since the previous problem -was- solved and this is a further extension of that idea... and probably complicated.

Basically, as a recap, I have this code:

In script header
Quote
import function TypeLine(string line, int vspacing,  int xpos, int font, int colour);
In global script
Quote
function TypeLine(string line, int vspacing, int xpos, int font, int colour) {
 
//declare local vars
  int length=0;
  int i = 0;
  string displayedline;
  int textid = 0;
//initialise vars , overdoing it a bit ;-)
  length = 0; 
  i=0;
  StrCopy(displayedline," ");
  textid = CreateTextOverlay(xpos,50,400,font,colour,displayedline);

          //get string length, to know how long the loop must run
  length=StrLen(line); //set string length
         //start loop
  while(i<length){
         // pick character at position "i"and stick it at the end of string "displayed line"
    StrFormat(displayedline, "%s%c", displayedline, StrGetCharAt(line,i));
         //set textoverlay as displayedline
    SetTextOverlay(textid, 10,vspacing,400, font, colour, displayedline);

         // if a space is added to the string do not play a sound, else play a 'tick'
         Wait(10);
    if (StrGetCharAt(line,i) == ' '){
   }
   else{
        PlaySound(1);
        Wait(5);
    }
           //increase the loop counter
    i++;
  }
  return textid;
}

In room script
Quote
//type lines and play sound of ticking machine
int line1;
line1 = TypeLine(" First Line", 5, 50, 1, 3);
Wait(60);
int line2;
line2 = TypeLine(" Second Line", 5, 75, 1, 3);
Wait(60);
int line3;
line3 = TypeLine(" 3rd Line.", 5, 100, 1, 3);
Wait(60);

//after a pause the text is removed again
RemoveOverlay(line1);
RemoveOverlay(line2);
RemoveOverlay(line3);

}

(As a side note, this doesn't actually have the effect the last script would seem to suggest. Line 1 comes up fine, but disappears as soon as Line 2 appears, and the x position doesn't change between them - they all just start from the same place)

Usually I'd have a go at scripting this myself but I have no idea where to start with this one. I'm using the text window with background style of text display.

What I'd like to achieve is to modify the TypeLine function to always use the same size window regardless of text (I don't know if this is a matter of modifying the TypeLine function or whether it should be done elsewhere).

It already allows you to specify font and colour of text, but I'd also like to be able to control the x and y position of the text window, the speed of the typing, and if possible, have the text string point to a global message instead of typing the string out each time I use this function (though this one isn't a big deal). If possible (and I'm probably getting too ambitious here), I wondered about having another string parameter to specify a word or a phrase within the whole string to be highlighted (ie. coloured a set colour like yellow). So if the whole line of text was "This is a line of text." you could put in the highlight parameter "line" and that word would be yellow.

So maybe something like this - function TypeLine(string line, int ypos,  int xpos, int font, int colour, int speed, string highlight)

Also (feel free to shoot me), I wanted the text to be typed out as normal but instead of being controlled with 'wait's, to finish typing, and then stay on screen (blocking any other scripts) until a certain key is pushed (X = 88).

If anyone could offer any suggestions about this, point me in the right direction, whatever, anything, I'll REALLY appreciate it. I realise this is a lot all in one go but I'd rather do this then ask 50 different questions about the same essential piece of script in 50 different threads.
Quote
#2336
I forgive you, Snarky- I mean, Europe. It was a poopy kind of cat anyway. Actually, i'm GLAD you ran over it!

BTW, thanks everyone again for all the kind words -_-
#2337
Honestly, you don't want to go making a game based on an existing idea for your first project, especially if it really is just a 'play around' game. Just sit down for a few days if need be and think of a simple, original idea. Even something cliched would be better than taking on yet another Simpsons game or GOD FORBID King of the Hill! I'll beat you up verbally with a long vacuum cleaner if you make that game and screw it up ^_^

Some cliched ideas that would be fine for you to use:
-A game starring YOU as the main character!
-A game about a guy's quest to find the perfect topic for a game
-A prince who has to... find a princess.

OK, that's not as easy as it sounds. Seriously, just anything as long as it comes out of your head and doesn't breach copyright.
#2338
Quote from: OzzieOy on Wed 16/06/2004 18:44:44
I don't know if Rebecca is bitter against Europe in some regard but I thought that part was uncool...

Yes, I am. Europe ran over my cat and they won't give me back the balls I accidentally hit into their backyard. Stupid Europe.

^_^
#2339
Ah, it's okay. There were a couple of parameters missing from the TypeLine lines (though it only -now- gave me that error message) and there was a line break missing in one place. It works fine now, AND it seems to have solved my next task on it's own which was to get this kind of text inside a text window.

Thanks again, Scorpiorus ^_^ You're a champion.
#2340
I just managed to test it (had that other typing problem before stopping me from testing this one) and was about to say the exact same thing ^_^

It works GREAT now, thanks heaps! Scorpiorus, you're aaaaaaallright. ^_-
SMF spam blocked by CleanTalk