The firs part of the code work, but need some changes.
The part I don't get it is the one you wrote down as follow:

ent_move(vector(my.speed_x*time,0,0),nullvector)

Where do I have to type this. Also in player action o where?

Thanks

virtuamark