Ph[o]bia
New Member
- Reaction score
- 7
eh... How to make an oval???
Ahhh okay.
Well simply put, trigonometry is the answer.
If you're not great with trig then making a circle of effects around a unit will be a tough concept to grasp.
Trigger:
- Unit Oval Trigger
- Events
- Map initialization
- Conditions
- Actions
- For each (Integer A) from 0 to 11, do (Actions)
- Loop - Actions
- Unit - Create 1 Footman for Player 1 (Red) at ((Center of (Playable map area)) offset by ((600.00 x (Sin(((Real((Integer A))) x 30.00)))), (300.00 x (Cos(((Real((Integer A))) x 30.00)))))) facing Default building facing degrees
Here's a trigger i whipped up that creates 12 units in the shape of a large oval.
It works by creating a footie at the center of the map with point offset. The x value for the offset is a sine function (stretched by 600) and the y value for the offset is a cosine function (stretched by 300). Because the Sine function is stretched more than the cosine, we see a horizontal oval.
If you understand the trigonometry for this trigger, then you should be able to make your special effect oval! =)
Good luck!
Thanks...well i'm only 15 years old , i didn't saw trigonometri
Integer A changes each time, it's a loop. So it's just a quicker way to do stuff.