I’ve been trying to make a dungeon crawler boss battle that the player shoots projectiles but so does the player and I can’t get it to work. i was wondering if anyone could help me out?
here is the link
I’ve been trying to make a dungeon crawler boss battle that the player shoots projectiles but so does the player and I can’t get it to work. i was wondering if anyone could help me out?
here is the link
Hi! You have a few options here. If you want the player to be able to shoot, obviously an “on A button pressed block” will work to activate it, but the main problem is figuring out where to shoot! If your character is always going to be fighting one enemy at a time, you could use a similar bit of code as the enemy uses to make the player shoot at the enemy, but if they are fighting more than one, you are going to want a way to aim.
The way you might do this is by keeping track of which direction button was pressed last and sending the projectile in that direction. You could have a variable be set to different values for each “on […] button pressed” block and then depending on which value the variable is set to you can shoot in the correct direction. If you also want diagonal shooting, that is a bit more complicated, but I’m sure you can figure it out, or just use 4 direction shooting if you can’t.
I think it’s because there isn’t any input that allows the player to shoot.
Problem (I think): If the boss shoots projectiles, the boss gets hurt even by its own projectiles, if the player can shoot projectiles.
Why: No matter what, What happens when the sprites overlap will stay the same regardless of the name or type of the projectile.
How to fix: Instead of shooting projectiles, make the Boss shoot other sprites that spawn on the bosses x and y coordinates. (make sure the Sprite dies when it touches a wall)
Then, you can let the player shoot projectiles without any issues.
@loganisdabest is good at making bossfights, maybe they can help
…
…(o_o)
(note: do this after adding an actual shoot button.)
Thanks I think I got it working
@SpookyMan Some feedback I have for you is to maybe get rid of the different pixel sizes caused by the scale tool because it just looks horrible (My opinion) and it gives the game an non-proportional look and feel.
Overall, the game is looking really good. To take it up another level, perhaps you could make the boss turn in the direction that the projectile will the shot? The same could be said for the main character.
Keep up the good work!
CrunchyToast
what me??? oh well I could try but I’m making floor io world map
NAH my way of making the boss projectiles is so u still need the projectile but its simple enought u grab the set sprite kind to and switch it to enemyprojectle or u can choose one and its done I guess I am good at boss battles
so u need some HELP I can make the boss aim his projectiles AT you all you need is the sprite utils extension and just give me updated link and I’ll turn ur project TO a real boss battle like my picoyo one