Is it possible to make a character(not the player but npc) to attack the player when he enters a certain radius?
Is it possible to make a character(not the player but npc) to attack the player when he enters a certain radius?









A simple solution is to make an active circle. Set it to always follow your character. Make it invisible. When the NPC overlaps the circle, attack character.
Marv
458 TGF to CTF 2.5+ Examples and games
http://www.castles-of-britain.com/mmf2examples.htm
Hey delta9857,
I have a LOS widget that I have been working on for a project.
Actually I have 3 versions of it, I'm not ready to release 2 of the move advanced ones yet, but your more than welcome to use the first one if you want. It would be perfect for the solution that nivram mentioned.
It's very basic and simple to use with a few added features:
- 3 LOS Modes > 360 view, Peripheral view and FlashLight view
- You can adjust the size of view
- Use it for Player or NPC
- Have multiple LOS for different NPC
Anyway let me know if this is something you would like to use
Gerald
@nivram
Ive got the active circle, its invisible & attached to my character. Ive created the event (NPC overlaps active circle) now how do i make the NPC attack the player.(ive got it so all enemies take off 1 life if they touch the character









Move the enemy towards the character. Maybe by the ball movement?
Enemy overlaps circle
>Enemy: look towards character
Marv
458 TGF to CTF 2.5+ Examples and games
http://www.castles-of-britain.com/mmf2examples.htm
Hello all,
I'm a teacher using this for a video game design class at the middle school level, and had a student ask me almost this exact question today.
If you could elaborate on this I'd greatly appreciate it. I made the active circle, but first, how do I attach it to the character, and second, how do I make it transparent?
We did a work around where the enemies were just continually firing at the player using the every x seconds command, then put walls to limit the effect, but it was somewhat unsatisfactory (though it brought back some great memories of Rush N Attack).
Thanks much for the help
Edit:
Ahh.. found out how to attach it thanks to another post by Nivram. Using the always command and setting it to position 0,0 of characacter. Now just looking to make it invisible.









Attach circle to character:
Always set position to character at 0,0
Make sure the hot spot on the character and circle are placed at the center.
Circle invisible:
Start of frame
>circle: make invisible
Marv
458 TGF to CTF 2.5+ Examples and games
http://www.castles-of-britain.com/mmf2examples.htm