How to throw one Actor on another

Hi,

I want to throw one actor on another, so i have one actor at bottom of the screen and another at top, when swiped the bottom actor should get jump and stand on the top actor, the speed and direction should be determined by the swipe, i got it to jump but i don't know how to stop it on top of that actor, it is a very small brick on top. Also the jump should be more in curve rather than straight. How to achieve that?

Comments

  • SocksSocks London, UK.Member Posts: 12,822
    edited March 2014

    when swiped the bottom actor should get jump and stand on the top

    Ok, so when swiped the actor you are throwing should land on the other actor, all good so far.

    the speed and direction should be determined by the swipe,

    Right, so the the direction of the actor you are throwing is determined by the direction of the swipe ?

    These two statements seem incompatible to me, for instance is it possible for the actor being thrown to not land on the other actor ?

  • mxs2649mxs2649 Member Posts: 32

    So think of it this way that i have mario on the bottom of the screen and a brick on the top, now the direction i swipe and how strongly i swipe should determine how it will jump but IF i do swipe in the brick's direction and at proper intensity, it will land you on the brick. So basically i am asking that how do i make the jump possible because i used the tutorial on youtube by gamesalad on how to throw objects and then how to throw objects in a particular area. so right now if i swipe it goes like in a straight line and it is not possible to land the actor on top of other like that. Thanks for the reply.

  • SocksSocks London, UK.Member Posts: 12,822
    edited March 2014
  • mxs2649mxs2649 Member Posts: 32

    Oh yes something like this, can i give this more angular jump? i mean i will make some changes like increase the gravity a bit and delete the bounciness, i do not want it to bounce. One last thing once i have swiped i do not want it to be interactive, like someone should not be able to catch it again in between and throw some other way. How to do that? Thank you so much for your help once again.

Sign In or Register to comment.