Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Zooming (https://forums.graalonline.com/forums/showthread.php?t=50457)

jake13jake 01-17-2004 04:40 AM

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.

Dach 01-17-2004 09:04 AM

other than checking keydowns (not very reliable) nope

Thallen 01-17-2004 04:24 PM

Messing with zooming isn't neccessary, when I zoom in, my computer tends to lag, a lot.

jake13jake 01-17-2004 06:05 PM

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.

ZeLpH_MyStiK 01-17-2004 11:21 PM

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.

GoZelda 01-18-2004 12:06 AM

Perhaps he wants to zoom in on a bug fight somewhere in the level???

jake13jake 01-18-2004 07:20 PM

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.

haunter 01-19-2004 09:59 PM

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...

jake13jake 01-19-2004 10:42 PM

I actually think it's not a bad thing if you want to take close up screenshots or something.

ZeLpH_MyStiK 01-19-2004 11:51 PM

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. =/

jake13jake 01-20-2004 08:28 PM

DOES ANYBODY UNDERSTAND?!?!??! that I want my script to be compatible, and I want the player to be able to use zoom?

Python523 01-20-2004 11:57 PM

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

haunter 01-21-2004 12:01 AM

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...

ZeLpH_MyStiK 01-21-2004 12:31 AM

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... -.-

jake13jake 01-21-2004 12:39 AM

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?


All times are GMT +2. The time now is 04:55 AM.

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