Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-17-2005, 06:02 AM
Gman4pwnu Gman4pwnu is offline
Banned
Join Date: Jan 2004
Posts: 434
Gman4pwnu is on a distinguished road
Send a message via AIM to Gman4pwnu
screenx screeny worldx worldy

why do they take the x and y? Shouldn't they just take x or y depending on if its screenx or y or worldx or y?
Reply With Quote
  #2  
Old 03-17-2005, 06:04 AM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
???
__________________
Reply With Quote
  #3  
Old 03-17-2005, 06:18 AM
Gman4pwnu Gman4pwnu is offline
Banned
Join Date: Jan 2004
Posts: 434
Gman4pwnu is on a distinguished road
Send a message via AIM to Gman4pwnu
worldx( x,y ) converts screen x,y to level x
worldy( x,y ) converts screen x,y to level y
screenx( x,y ) converts level x,y to screen x
screeny( x,y ) converts level x,y to screen y

Why does screenx need the levels x and y to tell me just the screens x
Reply With Quote
  #4  
Old 03-17-2005, 06:19 AM
Evil_Trunks Evil_Trunks is offline
Evil
Evil_Trunks's Avatar
Join Date: Dec 2004
Posts: 391
Evil_Trunks is on a distinguished road
maybe because that would limit their usefulness on a gmap?

(I am talking about 3D terrain here)
__________________


Last edited by Evil_Trunks; 03-17-2005 at 06:34 AM..
Reply With Quote
  #5  
Old 03-17-2005, 06:22 AM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
What do you think these functions do, and what arguments do you think they should take?
__________________
Reply With Quote
  #6  
Old 03-17-2005, 06:24 AM
Gman4pwnu Gman4pwnu is offline
Banned
Join Date: Jan 2004
Posts: 434
Gman4pwnu is on a distinguished road
Send a message via AIM to Gman4pwnu
well i mean screenx should only take x and screeny should only take y, same with worldx and y.

I mean it doesn't make sense to give it an x and y. All worldx does is convert the screens x to the levels x, I dont see wheres the Y comes in as any use, I mean you could put any number in there as the y and you'd get the same output.
Reply With Quote
  #7  
Old 03-17-2005, 06:51 PM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
3D terrain, as Evil said.
It affects the y coordinate, so I assume Stefan put the x,y in the screenx/worldx to keep continuity between functions.
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #8  
Old 03-17-2005, 07:37 PM
Gman4pwnu Gman4pwnu is offline
Banned
Join Date: Jan 2004
Posts: 434
Gman4pwnu is on a distinguished road
Send a message via AIM to Gman4pwnu
im working with 3d terrain and i see absolutely no differance, im basically using this to keep weather on the players screen :P
Reply With Quote
  #9  
Old 03-18-2005, 08:48 PM
Gman4pwnu Gman4pwnu is offline
Banned
Join Date: Jan 2004
Posts: 434
Gman4pwnu is on a distinguished road
Send a message via AIM to Gman4pwnu
I win the prize?
Reply With Quote
  #10  
Old 03-18-2005, 09:34 PM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally Posted by Gman4pwnu
I win the prize?
Uh, no. The mapping of ground coords to screen coords (and vice versa) is not linear in the y direction; it involves a modifier that can only be determined through use of an x coordinate.
__________________
Reply With Quote
  #11  
Old 03-24-2005, 06:33 PM
Gman4pwnu Gman4pwnu is offline
Banned
Join Date: Jan 2004
Posts: 434
Gman4pwnu is on a distinguished road
Send a message via AIM to Gman4pwnu
Ohh thats true, because the terrain can cause the coords to be in a differant place.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 06:25 PM.


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