|
Textboxes! cont. Displaying 1-9 of 9 total.
1
RPGirl
|
here is my system.vc
event // autoevent
{
palettemorph(0,0,0,0,63); // sets the palette
setplayer(0); // lets you control entity #0 (the one you just spawned)
}
int boxpic;
void TextBox(string a, string b, string c)
{
int thx, thy; //x & y positions of textbox
boxpic = loadimage("textbox.pcx"); //textbox pic
thx=screenx/2-160;
thy=screeny-65;
unpress(0);
while(!b1)
{
UpdateControls();
Render();
TcopySprite(thx, thy-1, 320, 66, boxpic);
GotoXY(thx+6,thy+5);
PrintString(1,a);
GotoXY(thx+6,thy+24);
PrintString(1,b);
GotoXY(thx+6, thy+43);
PrintString(1,c);
ShowPage();
}
free(boxpic);
}
Que Sera Sera, Whatever will be, will be.-Doris Day, "The Man Who Knew Too Much"
Posted on 2001-07-06 21:16:44
|
RPGirl
|
nt
Que Sera Sera, Whatever will be, will be.-Doris Day, "The Man Who Knew Too Much"
Posted on 2001-07-06 21:26:59
|
TheGerf
|
Well, I'm lazy; so I'm not gonna read the first post. I do, however, see a few mistakes in the above code.
event // autoevent
{
palettemorph(0,0,0,0,63); // sets the palette
setplayer(0);
}
All events should be in map.vc, not system.
setplayer(0);
This will give you control of an entitiy pre-placed uding MapEd. I don't know if that's what you want.
As for the textbox function, you'll probably want your printstrings to use font 0, unless you loaded a new one
printstring(0, a); // etc...
You can also have the boxpcii variable, int boxpic; inside the function with the thx and thy
void TextBox(string a, string b, string c)
{
int thx, thy; //x & y positions of textbox
int boxpic;
boxpic = loadimage("textbox.pcx"); //textbox pic
thx=screenx/2-160;
thy=screeny-65;
unpress(0);
while(!b1)
{
UpdateControls();
Render();
TcopySprite(thx, thy-1, 320, 66, boxpic);
GotoXY(thx+6,thy+5);
PrintString(0,a);
GotoXY(thx+6,thy+24);
PrintString(0,b);
GotoXY(thx+6, thy+43);
PrintString(0,c);
ShowPage();
}
free(boxpic);
}
TheGerf, not just any gerf.
Posted on 2001-07-06 21:49:50
|
TheGerf
|
Nah, I think the biggest problem is that there's a million (Ok, maybe not quite) people giving different answers, with few people explaining what they mean. They'll say, "use this code", and not elaborate.
TheGerf, not just any gerf.
Posted on 2001-07-06 21:53:51
|
TheGerf
|
Make sure that
event // autoevent
{
palettemorph(0,0,0,0,63);
setplayer(0);
}
that event is the first one to appear in the map.vc, as the first one is auto.
TheGerf, not just any gerf.
Posted on 2001-07-06 22:10:00
|
rpgking
|
I think I elaborated pretty well. That textbox function was from my post. But I guess no one here appreciates rpgking. All I have to say is, I tried.
-rpgking
Out of clutter, find simplicity.
-Einstein
Posted on 2001-07-07 01:55:13
|
Roto
|
Don't worry about it, you are much appreciated in your efforts.
Posted on 2001-07-07 02:15:53
|
TheGerf
|
nt
TheGerf, not just any gerf.
Posted on 2001-07-07 16:36:32
|
RPGirl
|
nt
Que Sera Sera, Whatever will be, will be.-Doris Day, "The Man Who Knew Too Much"
Posted on 2001-07-07 17:44:12
|
Displaying 1-9 of 9 total.
1
|
|