Maintaining a minimum velocity and a constant velocity

SANDEEP410SANDEEP410 Member Posts: 46
edited May 2012 in Working with GS (Mac)
I have 2 actors, i need to have my 1st actor which is a ball to maintain a minimum velocity of atleast 100
I need my 2nd actor which also collides a lot to have a constant velocity throught level.
I did this if selfmotionlinearvelocity is less than 100 than selfmotion linearvelocity is 100
But it doesnt seem to work
Any1 knows how to do it

Best Answer

  • MotherHooseMotherHoose Posts: 2,456
    Accepted Answer
    the Collide Behavior changes the velocity
    if the velocity is to remain constant … add no behaviors to change it

    for collision effects with constantVelocity:
    Rule: when
    Event: overlaps or collides with actor with tag collider
    -do something

    this has sample code and uses no walls …
    demo: http://www.mediafire.com/?6tda60900np8l9l

    image MH
Sign In or Register to comment.