Self Moving Enemy

Hi there I am trying to get my enemy actors to move by themselves and cant find anything to help me with it anyone got any sort of tutorial to help me please

Comments

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    I think you'll need to be more specific on exactly what kind of movement you are looking for. Doing something like a patrolling enemy vs full enemy AI is very different.
  • zamboni77zamboni77 Member Posts: 40
    Sorry it is just them patrolling an area not quite ready for full enemy AI yet
  • WingmanappsWingmanapps Member Posts: 458
    You have to be more specific.

    - Sideview?
    - Topview?
    - what kind of movement? static or randome?
  • UtopianGamesUtopianGames Member Posts: 5,692
    Im going to be doing a waypoint with tables tutorial soon from my latest template, sounds like its what you need.



    Darren.
  • WingmanappsWingmanapps Member Posts: 458
    edited July 2013
    Im going to be doing a waypoint with tables tutorial soon from my latest template, sounds like its what you need.



    Darren.
    Hi Darren

    That looks pretty cool.
    I always wondered if there was someway of doing a dot line path drawing - but where the dots are evenly spaced no matter the speed of your finger.

    any thoughts?

  • UtopianGamesUtopianGames Member Posts: 5,692
    With ours we check to see if the magnitude is a certain distance so they don't spawn to close to the last one but I'm sure its possible to do it so they don't spawn too far away also.

    Darren.
  • zamboni77zamboni77 Member Posts: 40
    Its a side scrolling platform game so id like the to be patrolling an area,
  • zamboni77zamboni77 Member Posts: 40
    This is really good stuff, thanks for the help this is my first game, hopefully first of many games
  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    edited July 2013
    For side to side patrolling you'd do something like this:

    Start out moving right:

    Move Behavior -- right -- at whatever speed you want


    Then check for the far right limit of movement I'll pick 400.

    Rule if player x position is => 400

    Move to the left


    Then check for the far left movement limit, I'll pick 100.

    Rule if player x positions is =< 100

    Move to the right


    In this case your enemy would patrol between x location 100 and 400 endlessly.
  • zamboni77zamboni77 Member Posts: 40
    is that using move or move to behavior
  • FajlajpFajlajp Member Posts: 666
    http://forums.gamesalad.com/discussion/comment/405786/#Comment_405786

    This demo i made should help. I know it's not side to side(that it's up and down) but just change the y-values to you x-values.
    It's a note in the demo telling you this.
    //Fajlajp
  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    Use Move NOT Move to.
  • zamboni77zamboni77 Member Posts: 40
    OK ive got the enemy moving to the left but i cannot get them to turn around and go back how can i fine out the limits of the area I want them to patrol?
  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    drag your actor to the farthest left and right spots, double click the actor and write down the X location at both of those spots. Return to your behaviors and enter the correct X locations.
  • zamboni77zamboni77 Member Posts: 40
    Thank you very much you are being so helpful. I can't thank you enough
  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    You're welcome. :)
Sign In or Register to comment.