This is getting tricky lol
Ok let's go one by one... let's give these points a letter
"What i can't do"
Make it visible when The player get touch.
A. I can modify the code for you to be able to modify that (just did)
- Make tower shoot in any direction. (optionnaly if you want more generic pluggin add also horizontal and vertical only)
B. I can arrange that but is sort of lenghty, if you want to do it by youself you can put one of the beam on the right place, the others in another tile and at the start of the game teleport them on the same tile. you can just add a page one with the teleport and the se an inside switch ON. If you REALLY need this to be done via script i can do it
- Set the distance that the laser touch. seem to be 3 spaces. But in my game it's only blocked by wall(regionID) or by block event.
C. That is a bug, it sohuld behave as you planned it to be.. i will look into it
"What will make it better"
Add posibility to add light effect on the laser like star war laser.
D. I don't know what you mean. If you mean you want like short beams to be continusly shot like pewpewpew it can be "easily" done but it requires a lot of time, at that point i would have to ask you pay me lol
Automaticly have the option to trigger a common even if touch. (That will help to use less parallele event)
E. It's already like that, in the pluguin guide button it shows the line you need to use to know if the player has been it by the player.
You can put the script line in a conditional branch (in the last page you can find the script option) and the line is:
$gamePlayer.isCollidedWithLasers()
Make possible to do a battle animation on the map from the tower to the player
F. You need to be more specific, for now i can tell you that you can show either an animation either on the laser tower of the player, but if you want both you would have to strech the animation relatively to the distance between the 2 and i dont' really know how to do that.
Have the laser kind(instakill) and the dragon king(shoot fireball on the player but he can dodge)
G. You can do a laser that goes on and off, it's graphically different but if it goes on and off at the same rate at the fireballs it will be basically the same gameplay wise. I'll add a few line to make this more easy to execute
"Bugs"
Look the video for see a bug whenre I can be between the box and statue without be touch.
H. I'm looking into it
If I made the statue moving that start to be really wierd, the beam don't react like we can expect.
I-a. I didn't know you had to be able to do that. First of all probaly one of the strange things it does is changing direction, that's because laser direction for now relies on the laser event direction and by moving it the laser will shoot in the direction it is currently moving.
To fix that you can check the "fixed directio" box in the bottom-left corner in the vent editor.
Since you need to shoot multiple lasers sometimes i'll see if i can fix this for you.
I-b. The other strage things it does is probably that the start and the end of the laser jump to the next posision when the laser tower starts to move right? It should, that's because i dint' knew you had to alsmo move them. I can fix that but as the last thin probably
"Arrows system"
J. Now the blocks only can pass how they want on arrows
H. I made a code to put inside a block for the pushing mechanic (it doesnt' support ice for now), make a script inside the block and put this
var event = this.event();
console.log(event);
var player = $gamePlayer;
var oldX = event._x;
var oldY = event._y;
event.moveStraight(player.direction());
if (event.isMoving())
player.moveForward();
if (!player.isMoving()) {
event._x = oldX;
event._y = oldY;
}
NOTES
From now on i will not add new post, if i make progress in something i will ad and
UPDATE at the end of teh said point
THIS WILL BE THE PLUGIN FILE I'LL BE UPDATING, DOWNLOD THIS FOR THE MOST UPDATED VERSION
also i merged the arrow plugin with the laser plugin, for now i keep LaserPlugin as name but we will probably give it another name
View attachment LaserPlugin.js