vjadro's Forum Posts

  • 5 posts
  • Post your .capx please

    Try to add to your event sheet:

    player NOT platform is jumping Set animation to "move_idle"

    "move_idle" is just frame/animation that you would like after jump.

    Also you can check any isMoving functions if NOT jumping doesnt work.

    Experiment :)

  • 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

    nowfus@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).

    Yann

    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)

  • Layers?

  • Check this dl.dropbox.com/u/51959257/pinky_ball.capx

    facing=0 (player facing there ->)

    facing=1 (player facing there <-)

    Hittin ball from left to right will push it, from right to left not.

    ps. If thats not what ur askin for, feel free to ask little more precise :P

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I registered on forum just to give you the answer, and I WILL :) I think i know how it SHOULD be done, but:

    1) Its just my first few hours with construct so me naAb :P

    2) Please if you post your 'anything' on public and ask for help, be so kind and rename some objects (to 'player', 'ball' etc) and maybe add some comments on events sheet, where exactly you need help. (I know, i know, the ball, pushing, running and so on... :P)

    ps. Sorry on my whining in first post, will try to post answer asap when im done (if anything comes out)

  • 5 posts