Actors passing through a specific point and then moving forward

Wonder MaruWonder Maru Member, PRO Posts: 98

Hello,
I'm working on a new game and it's the second time I'm working with physics, so I'm still not very confident about it.
For this game I need having actors (image balls) coming from random positions (within a range) outside the screen and all moving to a specific points on the screen, but then continue their trajectory beyond that point and eventually out of the screen.
The "move to" behavior makes them stop to that specific point, so it's not my case, and since the origin point is random I can't really specify an angle to reach that point and then continue moving in the same direction.

Is there a particular behavior to do that? Or a method?

Thanks!

Wonder Maru: casual games for casual people. www.wondermaru.com

Comments

  • frdfrd Member Posts: 191

    You could do this with two behaviours

    • a Move behaviour which moves your actor at the speed you want

    and

    • a Rotate to Position behaviour which you set with the coordinates of the point you want the actor to move through

    Hope that helps,
    F

  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,879

    Change Velocity will work for you. Here is an example:

  • Wonder MaruWonder Maru Member, PRO Posts: 98

    @RThurman said:
    Change Velocity will work for you. Here is an example:

    that's exactly what I meant! Thanks!

    @frd thanks to you too, I'll try both ways

    Wonder Maru: casual games for casual people. www.wondermaru.com

Sign In or Register to comment.