Help with actor! plz

FF1FF1FF1FF1 Member Posts: 75
edited November -1 in Working with GS (Mac)
Hi, I can't figure out this -

If ball hits actor from the left side, it gets accelerated to the right

If ball hits actor from the right side, it gets accelerated to the left

Any ideas ? thanks

FF1FF1 :)

Comments

  • ChessPawnChessPawn Member Posts: 127
    If you're talking about the "wall", which I'm pretty sure you are, just turn off movable under physics for the "wall".

    If you're talking about the ball, I got nothing. Except for make restitution 0 on both the ball and "wall".

    Hope this helps! :P
  • FF1FF1FF1FF1 Member Posts: 75
    Nar :P

    I mean I need to know how tot do this -

    if ball hits actor from the left side, it gets accelerated to the right

    If ball hits actor from the right side, it gets accelerated to the left

    Thanks!
  • ChessPawnChessPawn Member Posts: 127
    It being the ball, right?
  • FF1FF1FF1FF1 Member Posts: 75
    yes :)

    so think of the other actor as like a powerup
  • DrGlickertDrGlickert Member Posts: 1,135
    http://gshelper.com/?p=223 That's how I would do it.

    Use a global attribute that the ball changes the aceleration of the actor based on the rotation of the ball. Let me know if you still have problems with it.
  • ChessPawnChessPawn Member Posts: 127
    I doubt I understand this right, but I'll give it a shot. I'm assuming you have no rule about a collision between the two, eg Collide or the other type under Create Rule. What you need to do is create a rule that says when ball collides with "powerup", then accelerate to whatever direction and speed. Can't test it out at the moment though.

    EDIT: Pretty much what DrGlickert is saying! :P
  • FF1FF1FF1FF1 Member Posts: 75
    OK, ill try it and come back to ya!

    Thanks allot.

    :D
  • FF1FF1FF1FF1 Member Posts: 75
    It's similar, but I need it so I only use one actor.

    So if the balls comes from the right it shoots off to the left, and the other way around?

    With only one ball and one actor, thank! (not sure if this is possible)
  • FF1FF1FF1FF1 Member Posts: 75
    OK! Done!

    I used some stuff from the video and when you tab the power-up it changes the direction the ball goes cheers!

    FF1FF1 :D
Sign In or Register to comment.