The problem is solved in it's way but I still have complications like how to make the balls bounce of other units in the right angle. Any ideas are greatly apreciated. [NEW TRIGGERS IN COMMENT(way better ones too ]
In this map I have 4 walls 4 triggers 2 and 2 are indentical, still the left and the down wall triggers freezes the game I have no, no idea how and why this happens ?!? The most weird is that the upper is equal to downer and left is equal to right, but still they glitch.
And theese triggers are most probably a leak feast but that's not important It's just the wall calculation im after. My way doing it is surely terrible too But what I want to know is why it freezes when I make the "Ball" unit enter left and south region. (to make em move Attack them with the footman)
---THIS IS A LEAK FEAST---
---I know I need to update the Position of (Unit) to Variables and destroy them after use. I just want to find out why it freezes on left and down and not on up and right!
This is the Loop I used to make them run
In this map I have 4 walls 4 triggers 2 and 2 are indentical, still the left and the down wall triggers freezes the game I have no, no idea how and why this happens ?!? The most weird is that the upper is equal to downer and left is equal to right, but still they glitch.
And theese triggers are most probably a leak feast but that's not important It's just the wall calculation im after. My way doing it is surely terrible too But what I want to know is why it freezes when I make the "Ball" unit enter left and south region. (to make em move Attack them with the footman)
---THIS IS A LEAK FEAST---
---I know I need to update the Position of (Unit) to Variables and destroy them after use. I just want to find out why it freezes on left and down and not on up and right!
This is the Loop I used to make them run
- Time - Every 0.04 seconds of game time
-
Actions
- -------- Ball1 --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Ball1Speed Less than 60.00
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Ball1Speed Greater than 0.00
-
Then - Actions
- Unit - Move Ball1Unit instantly to ((Position of Ball1Unit) offset by Ball1Speed towards (Facing of Ball1Unit) degrees)
- Set Ball1Speed = (Ball1Speed - 0.08)
-
Else - Actions
- Unit - Move Ball1Unit instantly to ((Position of Ball1Unit) offset by Ball1Speed towards (Facing of Ball1Unit) degrees)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Else - Actions
-
If - Conditions
- -------- Ball2 --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Ball2Speed Less than 60.00
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Ball2Speed Greater than 0.00
-
Then - Actions
- Unit - Move Ball2Unit instantly to ((Position of Ball2Unit) offset by Ball2Speed towards (Facing of Ball2Unit) degrees)
- Set Ball2Speed = (Ball2Speed - 0.08)
-
Else - Actions
- Unit - Move Ball2Unit instantly to ((Position of Ball2Unit) offset by Ball2Speed towards (Facing of Ball2Unit) degrees)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Else - Actions
-
If - Conditions
- -------- Ball3 --------
- Unit - Move Ball3unit instantly to ((Position of Ball3unit) offset by Ball3Speed towards (Facing of Ball3unit) degrees)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Ball3Speed Greater than 0.00
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Ball3Speed Less than 60.00
-
Then - Actions
- Unit - Move Ball3unit instantly to ((Position of Ball3unit) offset by Ball3Speed towards (Facing of Ball3unit) degrees)
- Set Ball3Speed = (Ball3Speed - 0.08)
-
Else - Actions
- Unit - Move Ball3unit instantly to ((Position of Ball3unit) offset by Ball3Speed towards (Facing of Ball3unit) degrees)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Else - Actions
-
If - Conditions
- -------- ¨Ball4 --------
- Unit - Move Ball4Unit instantly to ((Position of Ball4Unit) offset by Ball4Speed towards (Facing of Ball4Unit) degrees)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Ball4Speed Less than 60.00
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Ball4Speed Greater than 0.00
-
Then - Actions
- Unit - Move Ball4Unit instantly to ((Position of Ball4Unit) offset by Ball4Speed towards (Facing of Ball4Unit) degrees)
- Set Ball4Speed = (Ball4Speed - 0.08)
-
Else - Actions
- Unit - Move Ball4Unit instantly to ((Position of Ball4Unit) offset by Ball4Speed towards (Facing of Ball4Unit) degrees)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Else - Actions
-
If - Conditions
-
BOUNCE1
-
Events
- Unit - A unit enters Region 000 Copy 3 <gen>
- Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Triggering unit) Equal to Ball1Unit
-
Then - Actions
- Unit - Create 1 Ball for (Owner of (Entering unit)) at (Position of (Entering unit)) facing (181.00 - (Facing of (Triggering unit))) degrees
- Set Ball1Unit = (Last created unit)
- Trigger - Add to Ball1 Speed gain <gen> the event (Unit - Ball1Unit Takes damage)
- Unit - Remove (Triggering unit) from the game
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Triggering unit) Equal to Ball2Unit
-
Then - Actions
- Unit - Create 1 Ball for (Owner of (Entering unit)) at (Position of (Entering unit)) facing (181.00 - (Facing of (Entering unit))) degrees
- Set Ball2Unit = (Last created unit)
- Trigger - Add to Ball2 Speed Gain <gen> the event (Unit - Ball2Unit Takes damage)
- Unit - Remove (Triggering unit) from the game
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Triggering unit) Equal to Ball3unit
-
Then - Actions
- Unit - Create 1 Ball for (Owner of (Entering unit)) at (Position of (Triggering unit)) facing (181.00 - (Facing of (Triggering unit))) degrees
- Set Ball3unit = (Last created unit)
- Trigger - Add to Ball3 <gen> the event (Unit - Ball3unit Takes damage)
- Unit - Remove (Triggering unit) from the game
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Triggering unit) Equal to Ball4Unit
-
Then - Actions
- Unit - Create 1 Ball for (Owner of (Entering unit)) at (Position of (Triggering unit)) facing (181.00 - (Facing of (Triggering unit))) degrees
- Set Ball4Unit = (Last created unit)
- Trigger - Add to Ball4 <gen> the event (Unit - Ball4Unit Takes damage)
- Unit - Remove (Triggering unit) from the game
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
-
BOUNCE1 Copy Copy
-
Events
- Unit - A unit enters Region 000 Copy <gen>
- Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Triggering unit) Equal to Ball1Unit
-
Then - Actions
- Unit - Create 1 Ball for (Owner of (Entering unit)) at (Position of (Triggering unit)) facing (180.00 - (Facing of (Triggering unit))) degrees
- Set Ball1Unit = (Last created unit)
- Trigger - Add to Ball1 Speed gain <gen> the event (Unit - Ball1Unit Takes damage)
- Unit - Remove (Triggering unit) from the game
- Wait 0.50 seconds
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Triggering unit) Equal to Ball2Unit
-
Then - Actions
- Unit - Create 1 Ball for (Owner of (Entering unit)) at (Position of (Triggering unit)) facing (180.00 - (Facing of (Triggering unit))) degrees
- Set Ball2Unit = (Last created unit)
- Trigger - Add to Ball2 Speed Gain <gen> the event (Unit - Ball2Unit Takes damage)
- Unit - Remove (Triggering unit) from the game
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Triggering unit) Equal to Ball3unit
-
Then - Actions
- Unit - Create 1 Ball for (Owner of (Entering unit)) at (Position of (Triggering unit)) facing (180.00 - (Facing of (Triggering unit))) degrees
- Set Ball3unit = (Last created unit)
- Trigger - Add to Ball3 <gen> the event (Unit - Ball3unit Takes damage)
- Unit - Remove (Triggering unit) from the game
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Triggering unit) Equal to Ball4Unit
-
Then - Actions
- Unit - Create 1 Ball for (Owner of (Entering unit)) at (Position of (Triggering unit)) facing (180.00 - (Facing of (Triggering unit))) degrees
- Set Ball4Unit = (Last created unit)
- Trigger - Add to Ball4 <gen> the event (Unit - Ball4Unit Takes damage)
- Unit - Remove (Triggering unit) from the game
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
- Unit - Create 1 Ball for (Owner of (Entering unit)) at (Position of (Triggering unit)) facing (360.00 - (Facing of (Triggering unit))) degrees
- Unit - Create 1 Ball for (Owner of (Entering unit)) at (Position of (Entering unit)) facing (180.00 - (Facing of (Triggering unit))) degrees
Attachments
Last edited: