Ball jump and actor moving issue

Hello,
i have a game requirement like below game...i have created basic things in my project ,but i was stuck at when a ball falling from the top and when collide with actor it has to stay on his position and can move around right and left .but i have issue with my actor when it collide with ball it also go down out of the screen . in short i want to make game like below link .

Please some here suggest me .

http://www.santabanta.com/games/1470/bouncing-eggs/

here is my sample project : http://www.mediafire.com/download/mhz5m7x4bwg978x/Jumping_Egg.gameproj.zip

Best Answer

  • jamie_cjamie_c ImagineLabs.rocks Posts: 5,772
    Accepted Answer
    @Gamexs, I've updated the project attached.

    What I did was Constrain your paddles Y location to 50 and updated some of it's physics settings to get the ball to bounce off of it correctly. I increased it's Density to 400 and Fixed it's Rotation.

    I also moved all of your Behaviors into the Prototype actors. You had a mix of Behaviors in Prototypes and Instances.

    Check it out, hope it's what you're looking for.

Answers

  • GamexsGamexs Member Posts: 35
    Hello,
    i have a game requirement like below game...i have created basic things in my project ,but i was stuck at when a ball falling from the top and when collide with actor it has to stay on his position and can move around right and left .but i have issue with my actor when it collide with ball it also go down out of the screen . in short i want to make game like below link .

    Please some here suggest me .

    http://www.santabanta.com/games/1470/bouncing-eggs/

    here is my sample project : http://www.mediafire.com/download/mhz5m7x4bwg978x/Jumping_Egg.gameproj.zip
  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    Sounds like you might need to make your player actor non-moveable and then control it with interpolate so when the ball collides with it it won't move off screen.
  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    Please don't mulit-post. I just answered your other post that matches this exactly....
  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,881
    Merged....
  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    You could also Constrain your players Y position to a set value then when the ball hits it it shouldn't fall off the screen, then you could leave it Moveable and use the Move Behaviors to move it left and right.
  • GamexsGamexs Member Posts: 35
    edited September 2013
    Not getting .. if i uncheck move behaviour then how can i move right to left
  • KevinCrossKevinCross London, UKMember Posts: 1,894
    edited September 2013
    Movable stops it from being affected by the physics engine like gravity and bounce. You can still move it around with movement behaviours when it's unchecked.
  • GamexsGamexs Member Posts: 35
    here above is my project link , i have uncheck moveable option then now i cant mov right -left .
  • GamexsGamexs Member Posts: 35
    Thanks you so much...it's working .
Sign In or Register to comment.