Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11-19-2011, 07:55 PM
iBeatz iBeatz is offline
Kavan
iBeatz's Avatar
Join Date: Dec 2010
Location: Northern Ireland, UK
Posts: 154
iBeatz will become famous soon enough
Send a message via Yahoo to iBeatz
Try using:

PHP Code:
setfocus(floatfloat); 
__________________

Intelligence without ambition is like a bird without wings.

Reply With Quote
  #2  
Old 11-19-2011, 07:56 PM
Emera Emera is offline
Delterian Hybrid
Emera's Avatar
Join Date: Mar 2011
Location: Newcastle Upon-Tyne
Posts: 1,704
Emera is a jewel in the roughEmera is a jewel in the rough
Quote:
Originally Posted by iBeatz View Post
Try using:

PHP Code:
setfocus(floatfloat); 
I know you have to use setfocus ;P
But it quickly snaps to the player. I want it to glide to the player smoothly. I have seen it done on Esteria.
__________________
Reply With Quote
  #3  
Old 11-19-2011, 08:00 PM
iBeatz iBeatz is offline
Kavan
iBeatz's Avatar
Join Date: Dec 2010
Location: Northern Ireland, UK
Posts: 154
iBeatz will become famous soon enough
Send a message via Yahoo to iBeatz
Quote:
Originally Posted by Emera View Post
I know you have to use setfocus ;P
But it quickly snaps to the player. I want it to glide to the player smoothly. I have seen it done on Esteria.
Just set the focus on a timeout, and just move the camera along the delta between the player and focus point divided by how much you want it to glide for before it reaches the player.
I haven't done it before but I assume that's how you would do it.
__________________

Intelligence without ambition is like a bird without wings.


Last edited by iBeatz; 11-19-2011 at 08:04 PM.. Reason: typo
Reply With Quote
Reply


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 05:53 AM.


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