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-19-2005, 07:54 PM
Aethorpe Aethorpe is offline
Their black hands protect
Aethorpe's Avatar
Join Date: Dec 2004
Location: Beyond infinite.
Posts: 265
Aethorpe is on a distinguished road
Send a message via AIM to Aethorpe Send a message via MSN to Aethorpe
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.
__________________
Reply With Quote
  #2  
Old 01-19-2005, 08:02 PM
Evil_Trunks Evil_Trunks is offline
Evil
Evil_Trunks's Avatar
Join Date: Dec 2004
Posts: 391
Evil_Trunks is on a distinguished road
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
__________________

Reply With Quote
  #3  
Old 01-22-2005, 07:53 PM
Aethorpe Aethorpe is offline
Their black hands protect
Aethorpe's Avatar
Join Date: Dec 2004
Location: Beyond infinite.
Posts: 265
Aethorpe is on a distinguished road
Send a message via AIM to Aethorpe Send a message via MSN to Aethorpe
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.
__________________

Last edited by Aethorpe; 01-22-2005 at 08:04 PM..
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 06:41 PM.


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