Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   How do i make the screen liek dvd player? (https://forums.graalonline.com/forums/showthread.php?t=47840)

mewtoo18 09-10-2003 04:56 AM

How do i make the screen liek dvd player?
 
so it has black on top and bottom so it shows more i nwidth than height

Kaimetsu 09-10-2003 05:00 AM

Simplest solution: Showpoly some black areas in there.

mewtoo18 09-10-2003 05:02 AM

huh?
 
huh? showpoly? like how do i use it?

Dach 09-10-2003 05:10 AM

newfeatures.txt

but, I'll let the first one be free
Quote:

- new script commands showpoly and showpoly2 for
displaying polygons:

showpoly index,{x1,y1,x2,y2,x3,y3,..};
showpoly2 index,{x1,y1,z1,x2,y2,z2,x3,y3,z3,..};

This commands displays a polygon on the specified
position. It will close the polygon (last coordinate to
first coordinate) and will fill the polygon.
If you only provide 4 numbers (e.g. showpoly 1,{10,10,20,20};)
then it will draw a line (in this case from (10,10) to (20,20)).

For showpoly there exist following modifier commands:
- changeimgcolors index,red,green,blue,1;
- changes the colors, red/green/blue must be values between 0 and 1
- changeimgvis index,layer;
- tells graal where to display the polygon: 0 - under players,
1 - same layer liker players, 2 - over players (default),
4 - on the status bar, specified coordinates will work
as screen coordinates instead of world coordinates

DustyPorViva 09-10-2003 05:11 AM

Read newfeatures2002.txt...

But for sakes:

NPC Code:
showpoly index,{x1,y1,x2,y2,...}



It can keep going beyond one set of coordinates, and it will basicly draw a line to each coordinate in order and fill in any spaces with a solid color.

NPC Code:

showpoly 0{
playerx,playery,
playerx+2,playery,
playerx+2,playery+2,
playerx,playery+2
};


GoZelda 09-12-2003 06:59 PM

Draw a square polygon...

NPC Code:

showpoly [index],{playerx-2,playery,playerx+2,playery,playerx+2,playery+2,pl ayerx-2,playery+2};



but then with screenwidth and screenheight


All times are GMT +2. The time now is 04:13 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.