Pop up text

Game Editor comments and discussion.

Pop up text

Postby gi-ryuu » Wed Apr 12, 2006 12:50 am

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
gi-ryuu
 
Posts: 1
Joined: Wed Apr 12, 2006 12:43 am
Score: 0 Give a positive score

Postby Hyperyon » Sat Jul 15, 2006 5:54 pm

I was searching the forum for the answer and came across this old topic. I also hit the same blockroad. :?
Lets keep our dreams alive!
Hyperyon
 
Posts: 148
Joined: Sat Jun 24, 2006 1:29 pm
Score: 0 Give a positive score

Postby Game A Gogo » Sat Jul 15, 2006 9:36 pm

try dilo dude's tutorial in advance topic.
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Postby Hyperyon » Sun Jul 16, 2006 10:35 am

Pigs will fly first before I understand..lol
Lets keep our dreams alive!
Hyperyon
 
Posts: 148
Joined: Sat Jun 24, 2006 1:29 pm
Score: 0 Give a positive score

Postby Game A Gogo » Sun Jul 16, 2006 2:08 pm

me too
but try putting the pauseon(); in the script and pauseoff();.
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Postby Hyperyon » Sun Jul 16, 2006 4:49 pm

pause?! that makes it even more complicated :(
Lets keep our dreams alive!
Hyperyon
 
Posts: 148
Joined: Sat Jun 24, 2006 1:29 pm
Score: 0 Give a positive score

Postby Hyperyon » Sun Jul 16, 2006 4:51 pm

I wish DiloDude can make a um, recorded tutorial like the ones in G.E.
Lets keep our dreams alive!
Hyperyon
 
Posts: 148
Joined: Sat Jun 24, 2006 1:29 pm
Score: 0 Give a positive score

Postby frodo » Tue Jul 18, 2006 5:40 pm

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! :D
Whoever created GAME MAKER was very dumb!
User avatar
frodo
 
Posts: 127
Joined: Tue Mar 21, 2006 6:53 pm
Location: universe
Score: 2 Give a positive score

Postby Hyperyon » Wed Jul 19, 2006 5:09 am

OOOH! And when the main player isnt near the actor with text I disable the keydown event? :o So I can have texts for each actor.
Lets keep our dreams alive!
Hyperyon
 
Posts: 148
Joined: Sat Jun 24, 2006 1:29 pm
Score: 0 Give a positive score

Postby relaxis » Wed Jul 19, 2006 12:32 pm

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();
User avatar
relaxis
 
Posts: 82
Joined: Mon Jul 17, 2006 2:06 pm
Location: Luxembourg
Score: 1 Give a positive score

Postby Hyperyon » Wed Jul 19, 2006 2:16 pm

Ah right! :D Now, is it possible to keep a keydown event disabled from the begining?
Lets keep our dreams alive!
Hyperyon
 
Posts: 148
Joined: Sat Jun 24, 2006 1:29 pm
Score: 0 Give a positive score

Postby relaxis » Wed Jul 19, 2006 4:50 pm

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.
User avatar
relaxis
 
Posts: 82
Joined: Mon Jul 17, 2006 2:06 pm
Location: Luxembourg
Score: 1 Give a positive score

Postby Hyperyon » Fri Jul 28, 2006 5:34 pm

Thanks for nudge guys!
Lets keep our dreams alive!
Hyperyon
 
Posts: 148
Joined: Sat Jun 24, 2006 1:29 pm
Score: 0 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron