On runtime (on CreateEvent on any actor), I have a string called Stop.
On Collision of Follow_mouse (actor that follows mouse) with actor L_screen, I have string named Left.
On Collision Finish, Script :
- !Left;
On Collsion Finish, Script :
- !Right;
- if ( Stop ) view.x = view.x ;
if ( Left ) view.x --;
if ( Right ) view.x ++;
Aim : When I place mouse on L_screen, the view moves right. When I place mouse on R_screen, the view moves left.
But I can get no success
And when I remove this line from my code if ( Stop ) view.x = view.x ; the view moves Right, as if it was reading this first line if ( Left ) view.x --; without considering my collision conditions
Could someone help me ? Please ?