So working on my demo, I noticed that a few improvements should be made.
Each Note block is a different change that will be coming in the next version.
A lot of the functionality changes from these. As I see it, only for the better.
Note 1:
An option for which way the sensor should face would be beneficial. As working with something like, damage sprites and whatnot, wouldn't really yield a good indicator of direction.
There are ways around this, but for simplicity's sake I think I'll be adding an optional parameter to the tags, DLRU or Down Left Right Up. They can be spelled out or shorthanded to 1 letter, and must be placed after the last number, but before the >
Ex:
<SensorLV: 3, Left>
<SensorLV: 3, L>
This cannot be used with the basic <Sensor: x> tag, as that surrounds the event.
Note 2:
All commas will become optional, so <SensorRV: 2 3 L> will work the same as <SensorRV: 2, 3, L> or <SensorRV: 2 3, L> or <SensorRV: 2, 3 L>
The spaces are still required so the plugin can know the difference between the numbers.
This would only affect the Rectangle view, but with the addition of the direction, possibly affect any tag that isn't the basic surrounding circle tag.
Note 3:
To use game variables for the range/width values, place a ! directly in front of the number. This will change the number into the ID of a game variable. The value of the variable will be used for the sensor.
Ex: <Sensor: !3> will use the value of game variable 3 for the sensor range.
<Sensor: 3> will use 3 as the sensor range.
Please note that this is opposite to the rectangle view variable tag's old functions.
Also note, that this means there will be no more "Var" tags.
<SensorVar: x>
<SensorLVar: x>
<SensorCVar: x>
<SensorRVar: x, x>
Will be removed!
You will get an error if the value is not a number.
[EDIT] Note 4:
I've noticed, atleast in the rewrite I'm working on, that the selfswitch will not trigger when the player is in the sensor zone when the event changes directions, or moves. The best fix for this does however mean that it will check the sensor zones every update cycle, instead of just when the player moves.
On the upside, It will now skip processing anything if there is no sensor information on the event OR the current page.
Note 5:
I hope to be able to add plugin command support so you can change any aspect of a sensor on fly. I make no promises here, as I haven't been able to look into it just yet.
Update:
I've reworked much of my code, and want to take a look into reworking the sensor zone checking.
I'm sorry about the delay of the Demo, but I have this desire to make a final(ish) version to put out with it.
[/EDIT]
I have rebuilt my tag processing system, and I am quite satisfied. 😀
Unfortunately, this halted progress on my demo for a bit. 🙁
I will not be pushing this update out just yet, as I haven't been able to fully test it. Most likely the next update will accompany the demo. I'll try to keep you guys abreast of further changes and fixes planned.
Each Note block is a different change that will be coming in the next version.
A lot of the functionality changes from these. As I see it, only for the better.
Note 1:
An option for which way the sensor should face would be beneficial. As working with something like, damage sprites and whatnot, wouldn't really yield a good indicator of direction.
There are ways around this, but for simplicity's sake I think I'll be adding an optional parameter to the tags, DLRU or Down Left Right Up. They can be spelled out or shorthanded to 1 letter, and must be placed after the last number, but before the >
Ex:
<SensorLV: 3, Left>
<SensorLV: 3, L>
This cannot be used with the basic <Sensor: x> tag, as that surrounds the event.
Note 2:
All commas will become optional, so <SensorRV: 2 3 L> will work the same as <SensorRV: 2, 3, L> or <SensorRV: 2 3, L> or <SensorRV: 2, 3 L>
The spaces are still required so the plugin can know the difference between the numbers.
This would only affect the Rectangle view, but with the addition of the direction, possibly affect any tag that isn't the basic surrounding circle tag.
Note 3:
To use game variables for the range/width values, place a ! directly in front of the number. This will change the number into the ID of a game variable. The value of the variable will be used for the sensor.
Ex: <Sensor: !3> will use the value of game variable 3 for the sensor range.
<Sensor: 3> will use 3 as the sensor range.
Please note that this is opposite to the rectangle view variable tag's old functions.
Also note, that this means there will be no more "Var" tags.
<SensorVar: x>
<SensorLVar: x>
<SensorCVar: x>
<SensorRVar: x, x>
Will be removed!
You will get an error if the value is not a number.
[EDIT] Note 4:
I've noticed, atleast in the rewrite I'm working on, that the selfswitch will not trigger when the player is in the sensor zone when the event changes directions, or moves. The best fix for this does however mean that it will check the sensor zones every update cycle, instead of just when the player moves.
On the upside, It will now skip processing anything if there is no sensor information on the event OR the current page.
Note 5:
I hope to be able to add plugin command support so you can change any aspect of a sensor on fly. I make no promises here, as I haven't been able to look into it just yet.
Update:
I've reworked much of my code, and want to take a look into reworking the sensor zone checking.
I'm sorry about the delay of the Demo, but I have this desire to make a final(ish) version to put out with it.
[/EDIT]
I have rebuilt my tag processing system, and I am quite satisfied. 😀
Unfortunately, this halted progress on my demo for a bit. 🙁
I will not be pushing this update out just yet, as I haven't been able to fully test it. Most likely the next update will accompany the demo. I'll try to keep you guys abreast of further changes and fixes planned.
