RPG Style Text
Posted: Tue Jul 07, 2009 6:22 am
Alright, this is as far as i got before i just threw up paws in the air :3
i have some wire frame actors, two to show who is talking (left and right) and two to put the text box (left and right). i have a wire frame around the NPC who is talking to you, when you bump into that frame it stops the player, halts all events for the player that collided with it, and creates the text box, the text itself, and the proper icon. it then sets the text to what he says at first. i then set the text box with a couple of events, if you press "f" it will destroy itself, taking the icon and text with it, and reallows events for both players.
and thats where i stopped, due to cardiovascular asplosions...in my brain. what i want to do now is have a keydown event for "->" (right c-pad) to put up another line of text (actor "texty") and when there is no more text it destroys the text box or just doesnt do anything (imagines people smashing their -> key and wondering why no more text comes up x3) how would i do this? would it be a variable, counting how many times ive hit the -> key? or is it something even more complicated? and yes, i do realise im prolly doin it the hard way, but that seems to be my signiture style xD anyhoo, here is my demo, as well as a source file.
NOTE: character starts at the end of the level so you dont have to go through everything x3 i put the energy powerup next to you so you can kill the bats if they bother you.
i have some wire frame actors, two to show who is talking (left and right) and two to put the text box (left and right). i have a wire frame around the NPC who is talking to you, when you bump into that frame it stops the player, halts all events for the player that collided with it, and creates the text box, the text itself, and the proper icon. it then sets the text to what he says at first. i then set the text box with a couple of events, if you press "f" it will destroy itself, taking the icon and text with it, and reallows events for both players.
and thats where i stopped, due to cardiovascular asplosions...in my brain. what i want to do now is have a keydown event for "->" (right c-pad) to put up another line of text (actor "texty") and when there is no more text it destroys the text box or just doesnt do anything (imagines people smashing their -> key and wondering why no more text comes up x3) how would i do this? would it be a variable, counting how many times ive hit the -> key? or is it something even more complicated? and yes, i do realise im prolly doin it the hard way, but that seems to be my signiture style xD anyhoo, here is my demo, as well as a source file.
NOTE: character starts at the end of the level so you dont have to go through everything x3 i put the energy powerup next to you so you can kill the bats if they bother you.