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
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.
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.
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.
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
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?
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.
Comments
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
- Sideview?
- Topview?
- what kind of movement? static or randome?
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?
Darren.
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.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
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
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page