Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Straight Line (https://forums.graalonline.com/forums/showthread.php?t=134265192)

Gunderak 12-08-2011 05:07 AM

Straight Line
 
Hey, I have been playing around with AS2 in flash and have found something cool.
It allows you to draw a straight line between two x and y's.
Is there any way to accomplish this in GS2?

ff7chocoboknight 12-08-2011 06:46 AM

Please post serious threads.

showpoly

fowlplay4 12-08-2011 07:11 AM

Here's two different ways.

PHP Code:

// Setting polygon variable directly
with (findimg(200)) {
  
polygon = {
    
x1y1x2y2
  
};
}

// Showpoly
showpoly(200, {x1y1x2y2}); 


Gunderak 12-08-2011 09:33 AM

Ahok so a showpoly would do it, didn't even think of this.
Thanks!


All times are GMT +2. The time now is 10:28 PM.

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