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 01-17-2004, 04:40 AM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
Zooming

You know Alt+8, Alt+9... how they let you zoom in and out?

Is there anyway to calculate the percentage of the zoom? I want to make my setfocus scripts compatible with it, that's all.
Reply With Quote
  #2  
Old 01-17-2004, 09:04 AM
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
other than checking keydowns (not very reliable) nope
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #3  
Old 01-17-2004, 04:24 PM
Thallen Thallen is offline
Banned
Thallen's Avatar
Join Date: Jun 2003
Location: Florida
Posts: 1,284
Thallen is an unknown quantity at this point
Send a message via ICQ to Thallen Send a message via AIM to Thallen Send a message via MSN to Thallen Send a message via Yahoo to Thallen
Messing with zooming isn't neccessary, when I zoom in, my computer tends to lag, a lot.
Reply With Quote
  #4  
Old 01-17-2004, 06:05 PM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
Quote:
Originally posted by Thallen
Messing with zooming isn't neccessary, when I zoom in, my computer tends to lag, a lot.
yea, I know it isn't necessary, but just for the people that would want to do it, I'd want to have my setfocus scripts (which sets a focus restriction to the level you're in), to be compatable with the zoom for the people who actually want to zoom.
Reply With Quote
  #5  
Old 01-17-2004, 11:21 PM
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 don't get your question. Your default focus is the player, and that's the center. Once you zoom in, the player is still your center. Thus if you do setfocus you're just changing the center coordinates, it shouldn't have anything to do with the zooms.
__________________
Reply With Quote
  #6  
Old 01-18-2004, 12:06 AM
GoZelda GoZelda is offline
Mister 1,000,000
GoZelda's Avatar
Join Date: Jan 2003
Location: Brussels, capital of Europe.
Posts: 5,396
GoZelda will become famous soon enough
Send a message via AIM to GoZelda Send a message via MSN to GoZelda
Perhaps he wants to zoom in on a bug fight somewhere in the level???
__________________

Quote:
Originally Posted by Lance
stefan is satan
I am the best.
[URL removed]Music or aural pollution?
Reply With Quote
  #7  
Old 01-18-2004, 07:20 PM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
Quote:
Originally posted by ZeLpH_MyStiK
I don't get your question. Your default focus is the player, and that's the center. Once you zoom in, the player is still your center. Thus if you do setfocus you're just changing the center coordinates, it shouldn't have anything to do with the zooms.
I programmed a view script that, at regular zoom, will restrict the player's focus to within a single level. The problem is that I would have to multiply my perplex equations that I don't know how I made by the zoom percentage if I want it to be compatible with the zoom feature.

I originally made the view script about a year ago... but wasn't really experimenting more with it until recently when I found that it wasn't compatible with the zoom option.
Reply With Quote
  #8  
Old 01-19-2004, 09:59 PM
haunter haunter is offline
Registered User
haunter's Avatar
Join Date: Mar 2001
Location: Canada
Posts: 7,989
haunter is on a distinguished road
Just disable the zoom option all together... It's not that useful... The only thing I've ever used it for is to get rid of light effects in dark dungeons and things...
__________________
- Jordan
Reply With Quote
  #9  
Old 01-19-2004, 10:42 PM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
I actually think it's not a bad thing if you want to take close up screenshots or something.
Reply With Quote
  #10  
Old 01-19-2004, 11:51 PM
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 know! Do this:
NPC Code:

say2 Don't Use Zoom!;


lol it's really lame, but it gets to be point. Or you can do what haunter said, disable it, I don't find the zoom useful at all. The only times I've used it is when I got bored. =/
__________________
Reply With Quote
  #11  
Old 01-20-2004, 08:28 PM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
DOES ANYBODY UNDERSTAND?!?!??! that I want my script to be compatible, and I want the player to be able to use zoom?
Reply With Quote
  #12  
Old 01-20-2004, 11:57 PM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Quote:
Originally posted by jake13jake
DOES ANYBODY UNDERSTAND?!?!??! that I want my script to be compatible, and I want the player to be able to use zoom?

  • Don't loose your temper
  • You can't have everything you want
Reply With Quote
  #13  
Old 01-21-2004, 12:01 AM
haunter haunter is offline
Registered User
haunter's Avatar
Join Date: Mar 2001
Location: Canada
Posts: 7,989
haunter is on a distinguished road
Quote:
Originally posted by Python523
  • You can't have everything you want
Yeah... This is G-script we're talking about... not G'sus-script. :O I made a funny.... Or a not-so-funny...
__________________
- Jordan
Reply With Quote
  #14  
Old 01-21-2004, 12:31 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 still don't see how where the player looks at will have any effect on how their zoom is x.x Maybe its just me... -.-
__________________
Reply With Quote
  #15  
Old 01-21-2004, 12:39 AM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
Quote:
Originally posted by Python523



  • Don't loose your temper
  • You can't have everything you want
Sorry... My temper carried over from the devil snowflakes thread... Could somebody move this thread into the future improvements forum?
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 11:39 PM.


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