I'm using Galv's Map Projectiles to hit events and cause different things to happen. I have it set up to show an animation and to then turn on Self-Switch A for the events. On the page that I want the projectile to interact with, I have a comment
<projEffect> and on the page with the condition of Self-Switch A being on, I have a comment
<projBlock:true> which is supposed to block the projectile. But I'm still getting the animation to happen. Am I doing something wrong? Also, I have the projectile set to only fire in one direction, which it sort of does, but when I move and shoot at the same time, the projectile moves diagonally. Anyone know how I can prevent that from happening?
I think the play animation part is separate from the action part. So the animation can happen even if you don't have the notetag to perform the action.
projBlock:true means that the event is blocking the projectile and thus plays the animation. You should put projBlock:false instead.
My projectiles only moved diagonally if I had them follow the mouse position, I think? So do you have your projectile 'tid' set to -1 or d0 or something? EDIT: Actually no, if you have diagonal movement on, then they can travel strangely. I don't know what you can do about that one...
Thanks! Setting them to false did the trick. How do I turn off diagonal movement? My character doesn't seem to walk diagonally.
How are you getting diagonal shots without diagonal movement (if your 'tid', that is 'target event id' parameter isn't set to mouse)? What's your 'tid'?
the tid is d8 on one map and d6 on another. in the plugin parameters the default it's going off of is set to d0, but i'm overwriting that on the maps with quickTarg.
Ah okay, I always just used the d0 or mouse or -1, I didn't know it did that 😀
Only idea I have is do something like:
IF button X is being pressed
IF $gamePlayer.isMoving()
-> nothing
ELSE
-> projectile script
Other than that, I think you need to change the code? Well, maybe that d6 direction can be replaced by the -1
D0 does the same thing as D6. -1 makes it fire in a weird direction. I haven't tried your script but I want the player to be able to move and shoot at the same time, which it seems like that won't allow for?
[edit: -1 makes it fire in whatever direction I'm moving the character in, even tho the player character is set to direction fix.]