|
i need a text command Displaying 1-10 of 10 total.
1
TheMaxx
|
could some one give me a text command i cant get on e cause as you know the verge source is closed and i cant get one
FIRE MOTH MUST DIE!!!!
Posted on 2001-05-14 22:14:13
|
TheGerf
|
Here you go, this will be ugly and untested, but should give you the main idea behind one.
void text(string text1, string text2, string text3, string text4)
{
while(!b1)
{
rectfill(0,screeny-(screeny/4), screenx, screeny, 17);
gotoXY(5, screeny-(screeny/4));
printstring(0, text1);
gotoXY(5, 1*fontheight(0)+screeny-(screeny/4));
printstring(0, text2);
gotoXY(5, 2*fontheight(0)+screeny-(screeny/4));
printstring(0, text3);
gotoXY(5, 3*fontheight(0)+screeny-(screeny/4));
printstring(0, text4);
showpage();
render();
}
}
TheGerf, not just any gerf.
Posted on 2001-05-14 22:59:24
|
TheMaxx
|
so then to call the event like for a character talking
just put
event //1
{
text("yo")
}
right?
Posted on 2001-05-15 00:52:21
|
TheGerf
|
close, but you have to fill up the empty strings, ie:
text("Yo", "", "", "");
and you can also change the coordinates, colours etc. quite easily.
TheGerf, not just any gerf.
Posted on 2001-05-15 19:26:40
|
TheMaxx
|
oh yeah the event is like this
event // 4
{
text("Yo", "", "", "");
}
Posted on 2001-05-15 20:54:00
|
TheMaxx
|
and the event dosn't want to work
Posted on 2001-05-15 20:57:43
|
TheGerf
|
Oops, my mistake. Add this line before the while() loop:
unpress(1);
the way it was, it would detect the button pressed to start the event as the same one as to stop the loop.
TheGerf, not just any gerf.
Posted on 2001-05-15 22:02:06
|
TheMaxx
|
well i added this
unpress(1);
right but it froze
so could you type in the whole code?
thanks
Posted on 2001-05-15 22:29:32
|
jesusfreak
|
a few things, this is a help forum, we will help, but not make a game for you.
I used to be like you, still am sometimes. But I gained my knowledge off of studying other peoples code, seeing how and where they execute it, I learn the functions and gain knowledge that way.
When TVS goes back up, go to the files section and download a game that has been completed. look at the code, read vergec.txt repeatedly, see how others use it. This is a good way to learn,
and believe me, after you code your first thing, like a textbox, there is nothing more exciting than to look at it and say, "hey, I coded that", or, "hey, thats my own code"
you will be very pleased with yourself I am sure.
.|..|-../..|.|../..|-..|\..|-..../...|
.|..|-..\..|.|..\..|-..|/..|-.../-\..|/
\|..|-../..|_|../..|...|\..|-../...\.|\
Posted on 2001-05-16 17:40:39
|
TheMaxx
|
thats what i was doing when the source closed
i hate fire moth
Posted on 2001-05-16 21:22:13
|
Displaying 1-10 of 10 total.
1
|
|