MV help with Galv's Map Projectiles

projectileX and projectileY should be a variable reference because you don't know where the projectile will hit and the location is dependent on from where it was fired and the direction.

Also spawnMapId is the rock event Id on the spawn map, not the map Id. I guess I should've named it spawnMapEventId to be more clear.
projectileX and projectileY should be a variable reference because you don't know where the projectile will hit and the location is dependent on from where it was fired and the direction.

Also spawnMapId is the rock event Id on the spawn map, not the map Id. I guess I should've named it spawnMapEventId to be more clear.
I have the variable that takes the x and y position of the player, will that be useful?
I have the variable that takes the x and y position of the player, will that be useful?
You already have the coordinates at which the bullet disappears when it hits the wall. It's where you're currently spawning the rock and it's getting stuck. You need to put in those coordinates.
I don't know if I made a mistake with the strings but the event is not spawning
You already have the coordinates at which the bullet disappears when it hits the wall. It's where you're currently spawning the rock and it's getting stuck. You need to put in those coordinates.
imagem_2023-05-07_134539992.png
I don't know if I made a mistake with the strings but the event is not spawning

View attachment 261255
Did you just ignore everything I said? projectileX and projectileY need to be variable references, not number values and spawnMapId needs to be the event id of the rock on your spawn map. Your rock is not hitting the same wall tile every time you shoot it.
Did you just ignore everything I said? projectileX and projectileY need to be variable references, not number values and spawnMapId needs to be the event id of the rock on your spawn map. Your rock is not hitting the same wall tile every time you shoot it.
sorry, i was just confused about projectileX and projectileY, and the value of 5 is the event id of the rock
sorry for the lack of understanding
sorry, i was just confused about projectileX and projectileY, and the value of 5 is the event id of the rock
sorry for the lack of understanding
What does your rock spawn command look like now (the command where it is spawning in the wall) and where are you calling it?
What does your rock spawn command look like now (the command where it is spawning in the wall) and where are you calling it?
imagem_2023-05-07_140645068.png

It's in Portuguese but what it does is:

shoot a shot
define two variables as the player's current position
then it checks the player's direction and adds or subtracts a value of 6 (which is the range of the shot)
right after that it waits a bit and teleports a test event that I was using to simulate the spawn of the event, I would put the script of the spawn of the event after

this is the old code that has problems with the walls
View attachment 261256
It's in Portuguese but what it does is:

shoot a shot
define two variables as the player's current position
then it checks the player's direction and adds or subtracts a value of 6 (which is the range of the shot)
right after that it waits a bit and teleports a test event that I was using to simulate the spawn of the event, I would put the script of the spawn of the event after

this is the old code that has problems with the walls
Ok, from your earlier description I took it to mean the rock was actually being stopped by a wall and that you were using the rock's disappearance coordinates when that's not what you're doing at all. Your rock is always traveling 6 tiles away from the player and it is not being stopped by a wall.

Your code barely references Galv's projectile plugin.

My advice was based on the assumption you were getting disappearance values from the projectile plugin when you're going your own way entirely.
Ok, from your earlier description I took it to mean the rock was actually being stopped by a wall and that you were using the rock's disappearance coordinates when that's not what you're doing at all. Your rock is always traveling 6 tiles away from the player and it is not being stopped by a wall.

Your code barely references Galv's projectile plugin.


you have more experience than me, how would you do? If possible, make a project or something like that to explain to me, if you don't want to make a project, that's fine.
Ok, from your earlier description I took it to mean the rock was actually being stopped by a wall and that you were using the rock's disappearance coordinates when that's not what you're doing at all. Your rock is always traveling 6 tiles away from the player and it is not being stopped by a wall.

Your code barely references Galv's projectile plugin.

My advice was based on the assumption you were getting disappearance values from the projectile plugin when you're going your own way entirely.


you made me realize how broken my code is XD
you have more experience than me, how would you do? If possible, make a project or something like that to explain to me, if you don't want to make a project, that's fine.
I can do it but I'll need a day or so to work on it, I assumed you had implemented the first half all this time.
I can do it but I'll need a day or so to work on it, I assumed you had implemented the first half all this time.
perfect, no problem if it takes a day or more I can wait just fine

I assume you'll use the galv plugin for that, right?
perfect, no problem if it takes a day or more I can wait just fine

I assume you'll use the galv plugin for that, right?
I would use the galv plugin to attack the enemies and for you to defeat them with the slingshot too
perfect, no problem if it takes a day or more I can wait just fine

I assume you'll use the galv plugin for that, right?
Yes, I'll use both Galv Spawn and Galv Map Projectiles.
Yes, I'll use both Galv Spawn and Galv Map Projectiles.
thank you very much 😀

Just saying again, you don't need to send it to me as soon as possible, do it in your own time and send it to me when you're ready and thanks again
thank you very much 😀

Just saying again, you don't need to send it to me as soon as possible, do it in your own time and send it to me when you're ready and thanks again
Bad news: My health has taken a sudden turn for the worse as the mental strain of countless hours of starting at Sublime Text has taken its toll. You must go on without me. Use the directions I have left you and let them guide you on your game development path.
Bad news: My health has taken a sudden turn for the worse as the mental strain of countless hours of starting at Sublime Text has taken its toll. You must go on without me. Use the directions I have left you and let them guide you on your game development path.
this is very sad bro, not because you can't help me, but because you're wrong, you know?
I sincerely hope you get better, I'll be rooting for you

One last thing... where should I put the script you sent me? at what part of an event?
I'm really lost, I don't even know where to start

Original thread: https://forums.rpgmakerweb.com/threads/help-with-galvs-map-projectiles.157293/