[RMVX ACE] HELP WITH USING TRIGONOMETRY FOR A STEALTH SYSTEM
Posts
Pages:
1
Hi there RMN community, I'm already working on my next game and hit a huge roadblock in the process: making a functional stealth system with the help of trigonometry.
Here are some more details:
The game engine is RPG Maker VX Ace.
The system will give guards a cone view range and also detect if their sight is blocked by a wall or an object. I was already able to make this work but only when guards look in a straight line. It is in my understanding that giving them a cone-like view range is easier with trigonometry. Just to be clear, I want there to be almost no scripting, it is in my understanding that you can access the trigonometric functions with scripts and that is the only usage of scripts I want in the stealth system, if possible. I'm quite adept with common events but have very little skill with scripting. Because of that I would like someone to help me develop this system, two (or more) heads work better than one.
The game in question will not be commercial.
Thanks in advance for any help and have a nice day!
EDIT: After looking over my post again I realized I wasn't being specific enough, what I'm looking for is a way to call the trigonometric functions through a script, it doesn't need to be anything super fancy. I just want to acces the trigonometric functions to alter some variables.
Here are some more details:
The game engine is RPG Maker VX Ace.
The system will give guards a cone view range and also detect if their sight is blocked by a wall or an object. I was already able to make this work but only when guards look in a straight line. It is in my understanding that giving them a cone-like view range is easier with trigonometry. Just to be clear, I want there to be almost no scripting, it is in my understanding that you can access the trigonometric functions with scripts and that is the only usage of scripts I want in the stealth system, if possible. I'm quite adept with common events but have very little skill with scripting. Because of that I would like someone to help me develop this system, two (or more) heads work better than one.
The game in question will not be commercial.
Thanks in advance for any help and have a nice day!
EDIT: After looking over my post again I realized I wasn't being specific enough, what I'm looking for is a way to call the trigonometric functions through a script, it doesn't need to be anything super fancy. I just want to acces the trigonometric functions to alter some variables.
author=Kyoui
Have you tried Vlue's proximity script?
From what I remember it should meet your criteria.
Could you link it? I can't seem to find it anywhere.
Hey Kyoui, I thank you for the script you proposed, but it's not what I'm looking for. What I'm looking for specifically is how to call the trigonometric functions in a script, I want to build the detection system on my own with events.
If anyone could tell me how to access the trigonometric functions with script calls I would be very thankful!
If anyone could tell me how to access the trigonometric functions with script calls I would be very thankful!
If you' re looking for the sin,cos,tan,cot,sec and the like you can just use a script call along the lines of:
All functions can be found here.
Good luck with eventing sound like a lot of work ^^
$game_variables[x] = Math.sin($game_variables[y])
All functions can be found here.
Good luck with eventing sound like a lot of work ^^
Pages:
1













