Yann, i've looked at X < ball.x and facepalmed so much it realy hurts :/
Thank you for remembering that long ago i had a brain... :P
now@my little example (Yann gives the answer, i was hoping to give just hint so you can make it on ur own)
1. the player should be able to push the ball(Rock) from left to right slowly
Event sheet->ball on collision with player->ball set bullet speed to (how much you wish).
I understood it like you want to kick ball, not move it :P In my example setting speed to 15 should do the trick. (Also, you dont need to use here 'bullet' behaviour. I just clicked it and seen that it worked). Then when 'isPushing=false' set bullet speed to 0;
2. the player's animation should be changed from running to pushing during the pushing of the pall
Here was my mistake, cose i didnt checked it. In my example where the comment said you just need to add push animation, you will need to set isPushing=true. After that go to Player Custom Movement group and add your animation like other events there with isPushing=true statement. isPushing is a player variable that i've missed.
3. the player should not be able to push the ball from right to left or from the top.
This was already implemented in my example (yep, Yann example is faaar more wise).
I am new to C2, just started, and in example you've made i found answers for some questions i had, thanks (i.e. finally i know why people are adding an invincible clones)vjadro2011-12-03 22:49:44