Zombie Enemy Behaviors - top view shooter

claudiohplinsclaudiohplins Member Posts: 3
edited December 2011 in Working with GS (Mac)
Hello evenyone,

How can I create a enemy behavior just to spawn (anywhere) and go to the players direction. I'm trying to create a game like Minigore. The Control I took from a template and the camera is working well, but I don't know how to make the enemies and the behavior. Are there a template for it?

Thank you.

Comments

  • mu-kowAPPSmu-kowAPPS Member Posts: 233
    You could constrain main chars x,y to game attributes. Then, move towards behavior the x,y and rotate to behavior the x,y
  • claudiohplinsclaudiohplins Member Posts: 3
    How can I do this? I need to apply the constrain attribute to the player actor, right? I don't know how to make the enemy behavior. I'm new with GS.
  • mu-kowAPPSmu-kowAPPS Member Posts: 233
    Create 2new real attributes, name one playerx and the other playery
    In the player actor, create 2new constrain behaviors. For one of them constrain game.playerx to self.position.x for the other, do the same thing, but instead of x, use y

    Then, create your enemy prototype. Inside the enemy prototype create a move to behavior with game.playerx and game.playery as the destination. Do the same thing for the rotate to behavior.
  • zNiiCzNiiC Member Posts: 74
    Hey are you good at creating levels? I have a working copy with enemy AI and everything. I know a lot about GameSalad, and if you know how to make levels and player animations, we can work together. PM me or respond to this thread.
Sign In or Register to comment.