Berzerk Attractor

VibraKnifeVibraKnife Member Posts: 60
edited August 2012 in Working with GS (Mac)
I'm trying to make a Berzerk (1980) game, but when I try to make my character become the attractor, the enemies head towards where I spawn, not where I move to. Why isn't this working? And can I get some help?

Comments

  • MobileRocketGamesMobileRocketGames Member Posts: 128
    edited August 2012
    You need to create two game attributes that the "attractor" constrains to its x and y position.

    Then in your accelerate toward behaviour (i assume you are using accelerate toward, but you can use whatever you want) you need to tell it to move toward those attributes. Those positions will automatically update and so the actor will automatically correct its course if the attractor moves.

    Also, it is best to create these kind of posts as a question instead of a discussion, so that they can be closed when a solution is found. It also gives credit to people that help out =D

    Good Luck!
  • VibraKnifeVibraKnife Member Posts: 60
    You need to create two game attributes that the "attractor" constrains to its x and y position.

    Then in your accelerate toward behaviour (i assume you are using accelerate toward, but you can use whatever you want) you need to tell it to move toward those attributes. Those positions will automatically update and so the actor will automatically correct its course if the attractor moves.

    Also, it is best to create these kind of posts as a question instead of a discussion, so that they can be closed when a solution is found. It also gives credit to people that help out =D

    Good Luck!
    This is soooooo helpful! Thanks so much for the help! Now I'm being followed by the enemies!
Sign In or Register to comment.