HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Unit goes faster and faster...

04-14-2004, 02:17 AM#1
AnAtOmIc)(BoMb
I'm trying to create a race map and was wondering how to make unit speed...I was thinking bout every 1 second in the game but I can't set movement speed to +50 ...

thnx ! ;)
04-14-2004, 02:40 AM#2
The Gearhead
Set movement speed to (current movement speed + 50)?
04-14-2004, 03:20 AM#3
AnAtOmIc)(BoMb
+ thing dont work...like set movement speed +50 dont work...
04-14-2004, 04:21 AM#4
ThyFlame
Variable = Variable + 50, set movement speed to Variable.

You may need to stop the unit before the new speed kicks in.


Hrm:
Unit issued command targeting point
Command = move
Set target of command = PointVariable


Set movement speed to Variable
Order unit to move to PointVariable
04-15-2004, 03:21 AM#5
AnAtOmIc)(BoMb
thats doesnt help...I want to simulate acceleration... :(
04-15-2004, 03:32 AM#6
AnAtOmIc)(BoMb
Could I use an ability that recast every 2 seconds? o_O
04-15-2004, 05:16 AM#7
The Gearhead
Urgh. You are not getting it.

You set the movement speed to an "Arithmetic" which is something like "(Current movement speed of unit (triggering unit)) + 50)" Then you do a "Set unit movement speed" which uses that.

So it'd be something similar to:

Periodic Event, Every 2 Seconds

Pick Every Unit In Region (Region) and do Actions:
Set Unit (Picked Unit) movement speed to: ((Current Movement Speed of Unit (Picked Unit)) + 50)
04-16-2004, 04:06 AM#8
AnAtOmIc)(BoMb
woohoo it Worked 1 :D thnx
now is there anyway to amke the unit move foward automaticaly?
04-16-2004, 04:08 AM#9
The Gearhead
Issue an order for it to move forward in a certain direction (Polar coordinates)

You'll need to make specific regions that specify the angle. And probably make it slow down on turns.
04-16-2004, 04:18 AM#10
AnAtOmIc)(BoMb
But I would like that player have too turn with keyboard =/
04-16-2004, 04:25 AM#11
The Gearhead
Sure, you make it so that using the keyboard issues a new command with a new polar offset. +/- #


And you dont have to have turns be triggered..
04-16-2004, 04:28 AM#12
AnAtOmIc)(BoMb
hum not sure how to make it...Im kinda new ^_^
04-16-2004, 04:55 AM#13
AnAtOmIc)(BoMb
ok heres my trigger

Events:
Time: Every 0.50 seconds of the game

Actions:
Unit - Order Hero to Move to ((Position of Hero) offset by 100.00 towards 175.00 degrees)

Thats make him moving foward

but dont know to how to order him to rotate...do I have to stop first trigger?

I tried

Events:

Player - Player 1 (Red) Presses the Left Arrow key

Actions: Order Hero to Move To ((Position of Hero) Offest by 100.00 towards 240.00 degrees)

I dont know how to finish it... :\
04-16-2004, 12:55 PM#14
The Gearhead
Use "Current Angle of Unit" and the 'arithmetic' to make him move incrementally. That way you can do "Current Angle of Unit + 50" or some such. 50 is pretty dramatic though... its over half a right angle instantly.
04-16-2004, 09:36 PM#15
Vexorian
Quote:
Originally Posted by The Gearhead
Use "Current Angle of Unit" and the 'arithmetic' to make him move incrementally. That way you can do "Current Angle of Unit + 50" or some such. 50 is pretty dramatic though... its over half a right angle instantly.
NO!, you have to use polar off set from the position of the unit to certain distance towards the facing angle of the unit-