how do i make my person black out in the middle of a room.

Started by andwii, Sun 23/07/2006 19:05:23

Previous topic - Next topic

andwii

I am thinking of my guy walking into a room and when he picks up an item he is transported to a new world, but he has to black out and have words on a black screen that say What is going on where am I? so my QU is how can I make him black out after picking up an item, then how do I get the words on the screen??? ???

Khris

player.Transparency=100;    // player is now invisible
RawSetColorRGB(0,0,0);       // set black paint
RawDrawRectangle(0,0,319,199);Ã,  Ã, // set it to whatever your screen size is

One way to put the words on the screen is positioning your character at an appropriate spot and making him say something. He's still completely transparent, so you'll only see the words.

player.x=160;
player.y=200;Ã,  Ã, // play with this setting to get them in the right position
player.Say("What is going on, where am I?");

andwii

hu... I dont get what you are saying, is that in the script, is there an easer way to do it???

Ashen

OK, long post and Khris beat me to it, but:

You're going to have to be more specific about what you want. What do you mean by making your guy 'black out'? If you want an animation, you need to draw and import the sprites, assign them to a view (like with walking animations) and use Character.LockView, Character.Animate and Character.UnlockView to run the animation (Manual entry, with code example), or use the 'Character - Quick animation' Interaction Editor command, if you're not comfortable with scripting. If you just want the room to fade to black, try the FadeOut command. If you want something else (like Khris has the character disappearing) - think carefully about what you want to happen, and then search the manual and the forums for the commands you need to do that. If you can't find anything, post again and explain IN DETAIL what you want.

Likewise for getting words on screen. There's Display(), Display, At and DisplayAtY, if you want 'narrator' style messages, Character.Say (as Khris suggested), if you want the character to say the lines (both of these are covered by the Interaction Editor command 'Game - Display a message', just change the 'Display message as:' setting to the character you want to say it. There's also Text Overlays, or you could use Objects ... It depends on how exactly you want it to look - again, think, search, and post again only if needed.
I know what you're thinking ... Don't think that.

andwii

I have changed my mind, What I am going to do is when he walks to the new room ( the room he was going to black out in) when he wals in he is back on earth or something... Like the wizerd of oz... as a way of saying. my guy walks in the room and says something like where not in kansas anymore... ;)... of course i cant rember how to have the guy talk to himself. so how do you get him to talk to himself could you please explane this in  clearer words,  I mean can you tell me sted by step on how to have him talk to himself... I know this is probubley in the manual, but I cant find it if it is. so to refrane  how do you have your guy talk to himself.

Ashen

OK, from the beginning:
The first thing to think about is, when do you want something to happen? E.g. is it when interacting with an Object (like you originally wanted), is it when the player stands on a given Region (as in your other thread), or just when the player enters the room (which you seem to want now)? (BFAQ Entry Placing your code)
In this case, you probably want the 'Player enters room (after fadein)' interaction. Go back and look at KhrisMUC's reply in your other thread - instead of using the screen edges, this time you'll be using the 'Player enters room (after fadein)'. Add an interaction to display the message - like I just said above:
Quote
the Interaction Editor command 'Game - Display a message', just change the 'Display message as:' setting to the character you want to say it.

If this doesn't work, tell us exactly what you've tried. It might be easier if you upload screenshots of the Interaction Editor, than type it.
I know what you're thinking ... Don't think that.

andwii

thanks I kind of understand now...

EDIT:
Ok thanks For the info it worked... ;D

SMF spam blocked by CleanTalk