Post new topic    
Red Slime
Send private message
Man, I need this site a lot. 
 PostTue May 02, 2017 5:24 pm
Send private message Reply with quote
How do you get an NPC to have the same X position of a character in you party during a cutscene, regardless of the X position of the hero?

(Y...you know what I'm talking about, right...?)




Confused
Liquid Metal King Slime
Send private message
 
 PostTue May 02, 2017 7:19 pm
Send private message Reply with quote
Here is a little example:

Code:

plotscript, example script, begin
   suspend player
   walk NPC to X(5, hero x(me))
   wait for NPC(5)
   show text box(127)
   wait for text box
   resume player
end


This makes NPC 5 walk until it has the same X value as the leader
Liquid Metal Slime
Send private message
 
 PostTue May 02, 2017 9:43 pm
Send private message Reply with quote
You could use "set NPC position(ID, hero x(me))" if you want it done instantaneously as well. For example, if it's done during a fade out.
Ps. I love my wife
Red Slime
Send private message
:) 
 PostThu May 04, 2017 2:20 pm
Send private message Reply with quote
Thanks- Both of you!
Red Slime
Send private message
Another Question... 
 PostThu May 04, 2017 4:03 pm
Send private message Reply with quote
Let's say I wanted to make an NPC appear next to the hero. How do I put an NPC next to my hero regardless of their original position?
;)
Meat, Cheese, and Silicon
Send private message
 
 PostThu May 04, 2017 5:02 pm
Send private message Reply with quote
"set NPC position(ID, hero x(me), hero y(me)+1)" to make the npc appear one tile below the hero, "set NPC position(ID, hero x(me)+1, hero y(me))" to make it appear to the right, etc.
Sent from my iPhone
Red Slime
Send private message
Reply 
 PostTue May 09, 2017 3:28 pm
Send private message Reply with quote
Taco Bot wrote:
"set NPC position(ID, hero x(me), hero y(me)+1)" to make the npc appear one tile below the hero, "set NPC position(ID, hero x(me)+1, hero y(me))" to make it appear to the right, etc.


Thanks!
Display posts from previous: