Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Looping, zooming, timing, rhyming... (https://forums.graalonline.com/forums/showthread.php?t=57165)

Aethorpe 01-19-2005 07:54 PM

Looping, zooming, timing, rhyming...
 
I have a light image, and I am trying to make it zoom to various different sizes and loop repeatedly but I can't seem to figure it out, I've seen it done a million times before, but I just don't understand loops. :| What would I add to the end to make it loop back to the beginning? I know it's a dumb question, because it's probably something simple, but I would appreciate the help greatly. :)

Evil_Trunks 01-19-2005 08:02 PM

for this purpose you will want to use a timeout loop
a basic timeout loop on the clientside would be something like

PHP Code:

//#CLIENTSIDE
if (created) {
  
// perhaps initialize some vars here since you will need some variables for this script
}
if (
playerenters || timeout) {
  
// code here
  
timeout 0.05;


you will want to increase and decrease your size variable

perhaps set a variable saying whether the size is increasing or decreasing, then once it reaches a certain size, make it start decreasing

hopefully you understand what I am saying

Aethorpe 01-22-2005 07:53 PM

Quote:

Originally Posted by Evil_Trunks
for this purpose you will want to use a timeout loop
a basic timeout loop on the clientside would be something like

PHP Code:

//#CLIENTSIDE
if (created) {
  
// perhaps initialize some vars here since you will need some variables for this script
}
if (
playerenters || timeout) {
  
// code here
  
timeout 0.05;


you will want to increase and decrease your size variable

perhaps set a variable saying whether the size is increasing or decreasing, then once it reaches a certain size, make it start decreasing

hopefully you understand what I am saying

I do, but now changeimgzoom doesn't seem to be working, but setzoomeffect works just fine and loops. :|

edit: Yay, I got it working now. :D


All times are GMT +2. The time now is 08:05 PM.

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