HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

how would I....

08-11-2005, 06:51 PM#1
Skwee
How would I make it so a unit appears to go flying threw the air and land about 200 units back? Right now my unit just jumps 200 units behind him then raises up and then lowers.

Quote:
Events
Unit - A unit comes within 100.00 of Painter 0400 <gen>

Conditions
((Triggering unit) is A Hero) Equal to True

Actions
Animation - Change (Triggering unit) flying height to 300.00 at 100.00

Unit - Move (Triggering unit) instantly to ((Position of (Triggering unit)) offset by 256.00 towards (180.00 - (Facing of (Triggering unit))) degrees)

Animation - Change Painter 0400 <gen> flying height to 300.00 at 100.00

Unit - Move Painter 0400 <gen> instantly to ((Position of Painter 0400 <gen>) offset by 256.00 towards (180.00 - (Facing of Painter 0400 <gen>)) degrees)

Wait 1.00 seconds

Animation - Change (Triggering unit) flying height to 0.00 at 100.00

Animation - Change Painter 0400 <gen> flying height to 0.00 at 100.00
08-11-2005, 06:59 PM#2
Vexorian
Basically you use a Periodic Event Trigger that runs each 0.04 seconds or some low value like that, and you move the unit a little each time.
08-11-2005, 07:15 PM#3
Joey.
Yes, and the unit should start to raise as it happens. By what you're explaining he still does a jump... he just doesn't jump right. You'll need to calculate the timing in order for it to look as real as possible.
08-11-2005, 07:15 PM#4
Skwee
yeah I was gonna try that but I thought it might lag a little, i'll test it out and get back to you.
08-11-2005, 07:26 PM#5
Vexorian
It won't lag as long as you don't have memory leaks there, have it efficient and don't mass that timer
08-11-2005, 09:12 PM#6
Skwee
yep, lag-free, thanks again vex!