Help with weapon and sound

Hello! Please help.
I cannot seem to change the sprite of the melee weapon in my adventure module game.
My game uses 32x32 character sprites. Needless to say, this makes the default 8x8 weapon very out of place.
I found that if I edit the game object "magic", the player weapon positioner shows my edit and this did fix the size issue.
However, when I export the game, the weapon is not loading the correct sprite(s).

Any and all help is greatly appreciated, thank you in advance. :)

Side note, for some reason when the player is hurt, the player hurt sound will not play.

EDIT: I was wrong about the size issue, the hitbox is still small. Please help.
 

baardbi

Well-known member
If I am understandig this correctly you have a very big character sprite. If that's the case, then that might be the problem. NESmaker doesn't handle huge sprites very well, and you might end up with strange effects like sprites not showing correctly. Could you post a screenshot of your character from the sprite editor?
 

dale_coop

Moderator
Staff member
If you are using the sprite based weapon, you need to change the drawing of the sword in the Handle Sprite Pre-Draw script... for the collision box you need to modify the Handle Sprite Weapon script.
Another solution, is to use an object for your Melee weapon, instead of the sprite based weapon (here a tutorial: http://www.nesmakers.com/viewtopic.php?f=35&t=1777)
 
baardbi said:
If I am understandig this correctly you have a very big character sprite. If that's the case, then that might be the problem. NESmaker doesn't handle huge sprites very well, and you might end up with strange effects like sprites not showing correctly. Could you post a screenshot of your character from the sprite editor?

Gladly :) Image 1 is what the weapon is supposed to look like, and image 2 is what it looks like in-game.

dale_coop said:
If you are using the sprite based weapon, you need to change the drawing of the sword in the Handle Sprite Pre-Draw script... for the collision box you need to modify the Handle Sprite Weapon script.

What exactly would I be looking to change, and what would I change it to?
 

Attachments

  • image1.png
    image1.png
    3.4 KB · Views: 2,240
  • image2.png
    image2.png
    6 KB · Views: 2,240

dale_coop

Moderator
Staff member
Hummm... I think, it would be kinda difficult if you're not comfortable with coding (and there is no step-by-step tutorial for that, on the forum. I could write a tutorial, if I had hours to spend on it).
Also, to write a script that would work for your project, it would require to have your settings and all the custom scripts you are currently using.

Maybe, the best option, if you want a bigger weapon would be to use a Melee object.
 
dale_coop said:
Hummm... I think, it would be kinda difficult if you're not comfortable with coding (and there is no step-by-step tutorial for that, on the forum. I could write a tutorial, if I had hours to spend on it).
Also, to write a script that would work for your project, it would require to have your settings and all the custom scripts you are currently using.

Maybe, the best option, if you want a bigger weapon would be to use a Melee object.

I was pretty sure it was the melee weapon... I did at one point try adding one like in your tutorial, but it broke the game ("couldn't find game.nes" popped up) for some reason. I probably make a little mistake or something, but still a pain... I tried editing the hitbox with Handle Sprite Weapon and found success! However, I am clueless as to changing the sprite XD I guess my question is, what would be the easiest and most painless way to re-assign the sprite?

Also, any idea why the hurt sound isn't playing?
 

dale_coop

Moderator
Staff member
For the sprite... you could try to make it part of your Player's shooting animation? (and just use an empty sprite for the sprited weapon)
 
dale_coop said:
For the sprite... you could try to make it part of your Player's shooting animation? (and just use an empty sprite for the sprited weapon)

Good idea! Main problem though: this will mean the invisible sprites will likely push to the limit where it will begin to flicker. I have an idea, although it's kind of a big request. Since I don't know the first thing about coding in the pre-draw script, than if you know how, maybe I could send you my pre-draw and my game_object_tiles and you could set it up? Obviously this would take up much of your time and I 100% understand if you're not at all up to that XD especially with how busy you are helping all the people you do. But if you think you might be able to, it'd be a huge help, I would be very patient with however long it takes and you would ABSOLUTELY get an unmissable credit in the game, maybe on the title screen. I always feel kind of weird asking people to do big things like this, I don't like to ask of a lot, but I honestly have no idea what I'm doing when it comes to this and don't think I will any time soon, and would hate to have to import a new weapon or something equally painful to the rump, so basically a last resort but still (kind of) a considerable option.
 
Made an odd new discovery: this game does not use the projectile weapon, but out of curiosity I tried loading the game with it unlocked, and the projectile weapon is loading what is supposed to be the Melee weapon sprite. It also oddly seems to be spawning just offset of where it's supposed to. Any idea what this could mean? Perhaps there is some way to make the projectile weapon function like the melee one?
 

Attachments

  • image3.png
    image3.png
    4.2 KB · Views: 2,073
Alright, I decided to just use the projectile in the game. However one problem still remains: the sound issue.
Anyone have any idea why the hurt sound isn't playing when the player is hurt? It's the same sound used for other things such as death, which play the sound fine, so the sound itself isn't the issue. What could it be?
 
Top Bottom