I have Problem with my game
actually, i have
1- view (xvelocity = 4;)
1- Player (xvelocity= 4;)
but also I run the all arrow (Right,Left, Up and Down)
3- field region (behind player, in the end of left screen ) to avoid my player to go out of he screen, and I put collision that if he collide the field region he will be get push from right to left,
when I run my game, every thing going okay, but the problem is when I press left and the player collide the field region, the region pushed him, to the right, then when go to right, the player go to right (everything okay ) but when I leave the button, the player go to left again,
(like I pressed the left button but I did not), I don't now how can I fix it ,
and other problem : when my player collied the field region, the field region push the player to the right, but not smoothly, in every second he collide the field region and get pushed , and again and again (do u understand hard to explain hah)
thank you