• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Tell Me how to set heights smoothly w/ no lags... NoT IN JasS,Please...!

Status
Not open for further replies.
Level 14
Joined
Sep 1, 2008
Messages
475
[RAINBOW]Hey, is there a trigger that changes the height of a unit smoothly? Cause I want to make a skill, but I don't know how to make it smoothly... all I got was a 100 by 100 height changing, cause if i make it 1 by 1, it goes lagg...
SOMEONE PLEASE TELL ME!!:cry:
BUT, NOT IN scripts OR else that write down like call/function BLa BLa Bla.......:wsad: [/RAINBOW]
 
Level 18
Joined
Aug 23, 2008
Messages
2,319
I think you'll just have to find the balance between lag and smooth heightening. 1 by 1 is probably way too slow, and no-one will notice the difference. Try 10 at a time. It still shows smooth changing, and probably won't cause lag.
 

Rui

Rui

Level 41
Joined
Jan 7, 2005
Messages
7,550
Please don't make posts like that. Sounds too whiny.

Also, the best way to do it is in JASS, especially if you're planning it to be able to be used by multiple players. In JASS you can assign local variables, which are declared/created each time the function is run.
The global variables of the Variable Editor are a pre-declared "pointer" whose value will be overwritten each time the action it is being used on runs.

Again, this depends entirely on what you're using it on, but GUI doesn't seem like an option for complicated things.
 
Level 7
Joined
Jun 16, 2008
Messages
327
Based on Rui's point, GUI is actually the simplified, illustrated version of JASS, which is really, in fact, raw scripting, which is more versatile than its GUI counterpart.

With JASS, you can perform scripted actions unavailable in GUI with better, more controlled results. Setting heights in GUI was meant for objects that were to be flying/hovering and, because of this, its more rough.
In JASS, however, with the use of variables, you can raise your units in a controlled, timed, paced action.

I wish I could give you the code, but I think it would be more beneficial if you read JASS tutorials before we can give you any JASS code.
GUI is too rough for something this delicate.
 
Status
Not open for further replies.
Top