Changing Autonomous Movement

Status
Not open for further replies.

asksuyo

Villager
Member
Joined
Mar 6, 2016
Messages
19
Reaction score
1
First Language
English
Primarily Uses
I wanted to ask if there was a way to change the enemy's autonomous movement type from approach to fixed.


Currently, I have an enemy that appears after you interact with an object. Then after a certain amount of time, says a bit of dialogue then disappears. However, during the dialogue sequence the enemy is still moving around trying to reach the player. I would like the enemy to stop approaching the player during the dialogue sequence, but I'm not sure how to go about this.


This is what I currently have:


A common even that keeps track of the length of the chase


Currently what the movement route does is make the enemy frozen and facing away from the player, but it still continues to move around.


Screen Shot 2016-03-12 at 11.37.00 PM.png


The enemy event that just holds the game over state, and the autonomous movement.


Screen Shot 2016-03-12 at 11.37.34 PM.png


I'm not quite sure if I need to a script for this, if I need to delete this event and replace it with a new event, or if there is a function I'm not aware of?


Thank you for time!
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
I think if you set the move route in the common event to repeat, it'll override the autonomous movement.


Common events set to parallel process loop by default, so you do not need to add a loop in there and a break loop.  Your break loop is simply going to go to the last command in the list, then start over again from the top.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,357
Reaction score
7,671
First Language
German
Primarily Uses
RMMV
And to change the autonomous movement, you need to change the page of the event.


I would remove the set move route from the CE completely, have it as autonomous movement on a second page of the event, and use a general switch in the common event to control which page of the event is active.


Also, please note that player touch waits on player movement - if the player stands still, the event will never tag him.


If you want the trigger to react to the events movement, you need to change it to event touch (which means when the event touches the player)
 
Last edited by a moderator:

asksuyo

Villager
Member
Joined
Mar 6, 2016
Messages
19
Reaction score
1
First Language
English
Primarily Uses
Thank you for your quick reply Shaz and Andar!


This fixed my problem!


I'll definitely try out what you've written Andar, and thank you for player touch info!


I noticed that there was something wrong when the enemy touched the player sometimes, but the end condition would not activate, and now I know why!


Thank you again!
 

mlogan

Global Moderators
Global Mod
Joined
Mar 18, 2012
Messages
15,351
Reaction score
8,532
First Language
English
Primarily Uses
RMMV
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:

Forum statistics

Threads
105,854
Messages
1,016,998
Members
137,562
Latest member
tamedeathman
Top