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...?)
Man, I need this site a lot.
Moderators: marionline, SDHawk
- Bob the Hamster
- Lord of the Slimes
- Posts: 7660
- Joined: Tue Oct 16, 2007 2:34 pm
- Location: Hamster Republic (Ontario Enclave)
- Contact:
Here is a little example:
This makes NPC 5 walk until it has the same X value as the leader
Code: Select all
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
-
- Red Slime
- Posts: 49
- Joined: Thu Oct 29, 2015 8:18 pm
Another Question...
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?
;)
;)
-
- Red Slime
- Posts: 49
- Joined: Thu Oct 29, 2015 8:18 pm
Reply
Thanks!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.