Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   dx,dy (https://forums.graalonline.com/forums/showthread.php?t=44840)

Onijustin_P2P 05-10-2003 09:59 AM

dx,dy
 
how i get the DX and DY position from the playerx / playery
to a X or Y position ?

*im not good in maths ;x*

Onijustin_P2P 05-10-2003 03:31 PM

kai can you post an example plz ?
i dont really get it.... deduct ?

Python523 05-10-2003 04:17 PM

how can you expect to script if you dont know what a deduction is x__x

tlf288 05-11-2003 01:43 AM

Re: dx,dy
 
Quote:

Originally posted by Onijustin_P2P
how i get the DX and DY position from the playerx / playery
to a X or Y position ?

*im not good in maths ;x*

You probably want this:

NPC Code:

( (x1 - x2)^2 + (y1 - y2)^2 )^.5


HoudiniMan 05-11-2003 10:44 AM

Re: Re: dx,dy
 
Quote:

Originally posted by tlf288


You probably want this:

NPC Code:

( (x1 - x2)^2 + (y1 - y2)^2 )^.5


Hint for Onijustin: That's the distance formula

Onijustin_P2P 05-11-2003 02:36 PM

lol.... kk ill try it out ;)
thnx all !

adam 05-11-2003 03:06 PM

Quote:

Originally posted by Kaimetsu
Deduction: a-b
There ya go again, trying to use big words to confuse people. ;)

Jeff 05-11-2003 05:32 PM

Quote:

Originally posted by adam


There ya go again, trying to use big words to confuse people. ;)


Deduction's hardly sesquipedalian! ;)

Alexander 05-11-2003 06:59 PM

Quote:

Originally posted by Jeff



Deduction's hardly sesquipedalian! ;)

But sesquipedalian is sesquipedalian.


All times are GMT +2. The time now is 02:20 PM.

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