I am attempting to make A.I. for the enemies in my game. The enemies have line of sight and platform behaviours. I need to know if there is a way to test if they are moving left or right. I thought that there would be a test for X vector in platform conditions but I didn't see it. Please help because I can't really progress with their A.I. until I figure this out.
The expression 'Sprite.Platform.VectorX' gives you what you look for.
To use it in a condition.
Pick the Enemy (anyhow anyway)
System > Compare two values ... first = Enemy.Platform.VectorX ...... comparisation = < ...... second = 0
.............actions run if it goes left
Else
System > Compare two values ... first = Enemy.Platform.VectorX ...... comparisation = > ....... second = 0
.............actions run if it goes right
Else
.............actions run if it goes not right and not left