- Joined
- Apr 19, 2011
- Messages
- 447
Hi.
I've recently started working again on my proyects, and I was doing fine until I found a problem I can't understand. I was using this trigger to move a unit:
REAL: Obviously, a real variable.
Basicly, the unit should slowly move down in the map. Alright, I tested it, and the unit didn't move at all. I used the following trigger to periodically check the REAL variable and the unit's coordinates:
The game says that the unit is moving, but my eyes say it's not. I don't really not what's going on. Anyone knows what can I do with this?
Kind Regards
I've recently started working again on my proyects, and I was doing fine until I found a problem I can't understand. I was using this trigger to move a unit:
-
Move
-
Events
- Time - Every 0.03 seconds of game time
- Conditions
-
Actions
- Custom script: call SetUnitY(udg_TempUnit, GetUnitY(udg_TempUnit) - udg_REAL)
-
Events
REAL: Obviously, a real variable.
Basicly, the unit should slowly move down in the map. Alright, I tested it, and the unit didn't move at all. I used the following trigger to periodically check the REAL variable and the unit's coordinates:
-
Check
-
Events
- Time - Every 1.00 seconds of game time
- Conditions
-
Actions
- Game - Display to (All players) the text: (REAL: + (String(REAL)))
- Game - Display to (All players) the text: (X: + (String((X of (Position of TempUnit)))))
- Game - Display to (All players) the text: (Y: + (String((Y of (Position of TempUnit)))))
-
Events
The game says that the unit is moving, but my eyes say it's not. I don't really not what's going on. Anyone knows what can I do with this?
Kind Regards