Having a problem with gravity

munocatmunocat Member Posts: 7
edited November -1 in Working with GS (Mac)
I do not want any gravity, what I want is when actor 1 hits actor 2 actor 2 moves the direction in which actor one was traveling with a little velocity.

Comments

  • munocatmunocat Member Posts: 7
    munocat said:
    I do not want any gravity, what I want is when actor 1 hits actor 2 actor 2 moves the direction in which actor one was traveling with a little velocity.

    To put it another way when actor 1 collides with actor 2 I want actor 2 to bounce the off actor 1.

    also there seems to be a drift towards the right on my actors who do i stop this?
  • svnsvn Member Posts: 445
    For your first query, just make sure Restitution(under Physics tab) is more than 0. Also, make sure that both actors have rules to Collide with each other.
    For your second question, in the rules that deal with motion, just put a Change Attribute(self.motion.Linear.X) to 0 in the Otherwise tab.

    Are you new to GS? If so, watch the videos in the GS Cookbook on YouTube and the videos on GShelper.com. They will provide you with tools to make polished games of all genres.
  • munocatmunocat Member Posts: 7
    thanks svn, things now working the way I want.
  • svnsvn Member Posts: 445
    Hey, no problem. Didja check out those videos like I suggested?

    Also, I have a thread in the Art subforum about my pixel art. Could you look at it and comment please?
Sign In or Register to comment.