Graal Forums  

Go Back   Graal Forums > Private forums > Graal4 Forums > Graal V4 Main Forum
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 01-22-2006, 07:21 PM
Rick Rick is offline
PipBoy Extraordinaire!
Rick's Avatar
Join Date: Jul 2004
Location: Long Beach, California.
Posts: 831
Rick is on a distinguished road
Suggestion: setview

Similar to setfocus, only it sets the origin of the viewpoint to this x/y (instead of the player's x/y). If a setfocus is in effect, it would be relative to this as well.

And of course, resetview.

Would be handy if this gets added, I really need it!
  #2  
Old 01-22-2006, 11:41 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Describe more please
  #3  
Old 01-23-2006, 02:23 AM
ZeLpH_MyStiK ZeLpH_MyStiK is offline
Scripter
ZeLpH_MyStiK's Avatar
Join Date: May 2003
Location: NYC
Posts: 553
ZeLpH_MyStiK is on a distinguished road
Send a message via MSN to ZeLpH_MyStiK Send a message via Yahoo to ZeLpH_MyStiK
I think Rick means that the setview command would change the resetfocus coordinates. For example:
NPC Code:

//#CLIENTSIDE
function onCreated() {
setfocus(5,5); //would change the view to coordinates (5,5)
resetfocus(); // would change the view back to the player
setview(20,20); // would change resetfocus coordinates to (20,20)
setfocus(5,5); // change view to coordinates (5,5) again
resetfocus(); // this time it would change view to 20,20 as opposed to player coordinates
resetview(); // and resetview to change the coordinates setview() has set back to player coordinates.
}

__________________
  #4  
Old 01-23-2006, 05:23 AM
Rick Rick is offline
PipBoy Extraordinaire!
Rick's Avatar
Join Date: Jul 2004
Location: Long Beach, California.
Posts: 831
Rick is on a distinguished road
Quote:
Originally Posted by Stefan
Describe more please
ZeLpH_MyStiK sort of gets it right.

I want to be able to move the player's view around (as if their player X/Y is moving) without actually moving the player.

Say the player is at 10,10 then I changed their coords to 50,50. Their view would center on 50,50.

What I want to do is have the player at 10,10 then be able to setview(50,50) and have the view center on 50,50 without actually moving the player.

Hopefully I'm making a little more sense now?
  #5  
Old 01-23-2006, 03:58 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Since when is setfocus moving the player ?
  #6  
Old 01-23-2006, 05:12 PM
Rick Rick is offline
PipBoy Extraordinaire!
Rick's Avatar
Join Date: Jul 2004
Location: Long Beach, California.
Posts: 831
Rick is on a distinguished road
Quote:
Originally Posted by Stefan
Since when is setfocus moving the player ?
It's not...?

I'm looking for a precise way of managing the view, setfocus doesn't seem to be that way.
  #7  
Old 01-27-2006, 12:59 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Well the setfocus thing is compatible for different screen size. If you want a way to set the view origin then you would need to care about the window size though ?
  #8  
Old 01-27-2006, 08:06 AM
Rick Rick is offline
PipBoy Extraordinaire!
Rick's Avatar
Join Date: Jul 2004
Location: Long Beach, California.
Posts: 831
Rick is on a distinguished road
Quote:
Originally Posted by Stefan
Well the setfocus thing is compatible for different screen size. If you want a way to set the view origin then you would need to care about the window size though ?
Yes that would be fine.
 


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 02:49 AM.


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