Page 1 of 1
Pop up text
Posted:
Wed Apr 12, 2006 12:50 am
by gi-ryuu
Hello. Im new and Ive been trying my best at a rpg type game :3 Though Ive hit a blockroad o: I need to know how to make text appear when you keytouch (near a certain actor), then dissapear when you click the same key.
Also it would be helpfull to know how to keep the player from moving especially at certain instances :3 (ex the text is up)
kthanksabunch
Posted:
Sat Jul 15, 2006 5:54 pm
by Hyperyon
I was searching the forum for the answer and came across this old topic. I also hit the same blockroad.
Posted:
Sat Jul 15, 2006 9:36 pm
by Game A Gogo
try dilo dude's tutorial in advance topic.
Posted:
Sun Jul 16, 2006 10:35 am
by Hyperyon
Pigs will fly first before I understand..lol
Posted:
Sun Jul 16, 2006 2:08 pm
by Game A Gogo
me too
but try putting the pauseon(); in the script and pauseoff();.
Posted:
Sun Jul 16, 2006 4:49 pm
by Hyperyon
pause?! that makes it even more complicated
Posted:
Sun Jul 16, 2006 4:51 pm
by Hyperyon
I wish DiloDude can make a um, recorded tutorial like the ones in G.E.
Posted:
Tue Jul 18, 2006 5:40 pm
by frodo
on the actor that you want text to pop up on, put key down, create actor ("text"). then on your text actor put key down, destroy actor, event actor. It's that simple!
Posted:
Wed Jul 19, 2006 5:09 am
by Hyperyon
OOOH! And when the main player isnt near the actor with text I disable the keydown event?
So I can have texts for each actor.
Posted:
Wed Jul 19, 2006 12:32 pm
by relaxis
You'll probably have to script your actors to move until a certain key is pressed - display the text and then keep moving
- psuedo code
<pre>
actortextmove()
{
while (not keypressed)
{rand 1 -4
if 1 - up
if 2 - down
if 3 - left
if 4 - right}
else
while (key pressed)
{display textbox}
loop actortextmove();
Posted:
Wed Jul 19, 2006 2:16 pm
by Hyperyon
Ah right!
Now, is it possible to keep a keydown event disabled from the begining?
Posted:
Wed Jul 19, 2006 4:50 pm
by relaxis
I'm not really sure. If the syntax for the scripting language is similar to C or C++ then i guess it could be something like (!keypress) = which means literally "when key is NOT (not = !) pressed" - ask someone who knows the GE script better than me though.
IE - look it up in the script reference.
Posted:
Fri Jul 28, 2006 5:34 pm
by Hyperyon
Thanks for nudge guys!