Accidentally posted this over in VX, yesterday. Whoops! Just gonna copypaste. I'm a klutz. This is an MV issue.
I'm creating a game where the player carries a flashlight. I want to have things react to the flashlight being shined on them, but I'm not sure how to do that. I assume it would involve using JavaScript, detecting a cone (at least, the squares necessary to make something cone-like) in front of the player, and... something happens. Certain actors will take damage (moving enemies in the overworld), items may appear, etc.
I know I managed something of the sort on VX Ace years ago, but that was a completely different language. Any help on figuring this out would be appreciated.
I'm creating a game where the player carries a flashlight. I want to have things react to the flashlight being shined on them, but I'm not sure how to do that. I assume it would involve using JavaScript, detecting a cone (at least, the squares necessary to make something cone-like) in front of the player, and... something happens. Certain actors will take damage (moving enemies in the overworld), items may appear, etc.
I know I managed something of the sort on VX Ace years ago, but that was a completely different language. Any help on figuring this out would be appreciated.