I'd like to know if you can make monsters walk around normally but when you approach them they notice you and run after you is that possible?
And if there is an other thread about this please tell me.
I'd like to know if you can make monsters walk around normally but when you approach them they notice you and run after you is that possible?
And if there is an other thread about this please tell me.
It's possible, but this should have been posted under Game Making Support
On page 1 of your monster event, set it as a parallel process trigger with a random move route. Then, add the following to your event commands:
On the second page of the monster event, you would set it to a parallel process trigger, activated by Self Switch A, with the autonomous movement set to "Approach" or a custom route, and set it up however you want. The list of event commands on page 2 would be the same as on page 1, but for the two conditional branches inside the "Facing Down" branch you would set handling when conditions do not apply (else) and turn control switch A OFF.
The code above is just for the monster facing down. You'd do the same thing for the other three directions, but instead of using the Y coordinate variables for facing right and left, you would use the X coordinate variables instead. Also, you would need a pair of variables (for both X and Y coordinates) per each monster event you wanted to use this on. You can reuse the same variables for other events on different maps, but monsters on the same map would require unique variables.
Also, if you did some searching around the internet I'm sure you could find some RGSS or RGSS2 scripts that might make this easier.
Any questions don't hesitate to ask!
Thankyou it works!
Glad I could help
A basic system of that type shouldn't be too difficult. Just use an event with a random motion path.
You'd probably need a little scripting to identify the difference between the player and npc x and y co-ordinates; that you'll need someone else to help with; and use the correct distance to activate a self switch.
The second page you activate with the self switch, set it to approach hero, and then initiate your battle on player touch.