Creating a particle trail that doesn't go to the right...>_>

tamhartmantamhartman Member Posts: 7
edited November -1 in Working with GS (Mac)
Hey everyone,
I'm working on a physics game, and I need to make a ball that leaves a trail as it moves. Currently, I'm running into the following problems:

1. I can get the trail to follow the mouse, but not the actor
2. for whatever reason, the trail always goes slightly to the right.

if anyone could help me figure out the variables, I would really appreciate it.

Thanks!

Comments

  • mangaroomangaroo Member Posts: 419
    to follow the actor you will need to reference his x and y position using 2 real attributes and link that to the particle instead of the mouse position

    it could be going to the right slightly due to an offset or your direction angle

    posting your settings might help...
  • tamhartmantamhartman Member Posts: 7
  • tamhartmantamhartman Member Posts: 7
    Actually, I think I figured it out. To get the trail to travel in the opposite direction that it's respective actor is traveling, I used this equation in the direction angle:

    (90/(self.Position.Y/Self.Position.X))-180
Sign In or Register to comment.