|
V2 Char Movement Displaying 1-5 of 5 total.
1
ladyvesper
|
Hi all,
Finished Aen's tutorials on v2, and I have a quick question:
How do you stop chars from wandering around the map after a messagebox? Here's the deal -- I do the message box in an event, and after I stop talking to the char he's moved a bunch of squares away. I think that, while he's not actually seen moving during the text box, his logic's being processed. Is there any way to pause entities while still having the map tiles and such animate with Render()?
Thanks in advance,
- the Lady Vesper
Posted on 2001-11-04 21:27:41
|
CypherAlmasy
|
Well, let me think. . . I never read Aen's tutorials on his textbox program, so I'm gonna try to wing it. Bear with me. ^_^
If the problem is with an ent that has a movement string specified (and I think that's what you mean, though I'm not sure), I would go about solving the problem like this:
1) Save the entity's movement string to a string variable of some sort. The mechanics of this are a little bit beyond my knowledge; I don't know the language as well as most people here. I think it would be something like "string_var = entity.movecode[ent]," though don't take my word for it.
2) Set the entity's movement string to a null string. Once again, don't ask how. I'm going off of V1 knowledge here, and assuming that there is something similar in V2
3) Call the text box function
4) After the textbox function terminates, set the entity's movement string to the value of the string you saved in step one.
I hope I've helped a little and not just ranted away to no end. Good luck!
CypherAlmasy
"If any of you step out of line, I'll promise to kill you in the name of T.G. Cid too. I'm watching you. Especially you over there, elfy." -Orlandu
Posted on 2001-11-04 22:25:08
|
ladyvesper
|
Well, I thought as much... however, the docs don't give the full contents of the entity structure. Does anyone know how to save and change an entity's movestring from inside VC2?
I tried to blank both the entity.moving and entity.movecode variables to no avail.
I guess for now I can just make all the ents on my maps not move, but that makes for very uninteresting maps. =)
- the Lady Vesper
Posted on 2001-11-04 22:33:15
|
CypherAlmasy
|
Well, the reference manual says they're read/write, so I don't know why clearing them wouldn't work. . . but entity support in V2 isn't exactly the most trustworthy thing according to vecna. What version of Verge are you using?
CypherAlmasy
"If any of you step out of line, I'll promise to kill you in the name of T.G. Cid too. I'm watching you. Especially you over there, elfy." -Orlandu
Posted on 2001-11-04 22:42:46
|
vecna
|
The most ideal solution is to have the entity move during the text box:
while (!donewithtextbox)
{
while (timer)
{
timer--;
ProcessEntities();
}
UpdateControls();
Render();
DrawTextBoxCrap();
ShowPage();
}
.. Actually, I'd have to check on the other method, so I think that's your best option.
-vecna
Posted on 2001-11-05 01:11:52
|
Displaying 1-5 of 5 total.
1
|
|