|
Post by dragonrpg on May 7, 2004 18:43:08 GMT -5
hi, i know how to make a dialog when collide with NPC. and the text appear. But i can;t get it to be type, i don;t like it to appear immediately. and also is there anyway to make an event that when i press the Enter key the dialog going to happen. Can someone post a easy example to understand. keep it simple as possible thanks because i read alot of dialog and see alot of examples and still don';t understand.
|
|
|
Post by megamushroom on Jun 1, 2004 18:13:38 GMT -5
scrolling text is actually very simple.
Make it so that when they collide, set global message to the text you want to display, so "Hello all".
then, in your dialogue object, put these in the correct events.
create: amount_typed=0
alarm0: amount_typed+=1
step: if amount_typed != string_length(global.message){ amount_typed+=1}
draw: draw_text(100,100,string_copy(global.message,-1,amount_typed))
what this does is draw the string global.message, but only up to the value if amount_typed, which is constantly increasing. To draw it in paragraphs, use the draw_text_ext function.
I got the example/idea from a gmd i found, i dont know the creator.
hope it helps
|
|
megabrain
User
Teslagon - Gaming is the first option
Posts: 13
|
Post by megabrain on Jun 4, 2004 12:32:43 GMT -5
Using objects easifies a lot, but it is NOT a good use for RPGs with over 200+ different dialog messages. Better use a simple script. In my post in Resources, you can find my RPG Dialog, you can learn a lot from it, it is commented but requires some GML skills
|
|