Language…
16 users online:  Anorakun, CalHal, deported,  Donut, El Cuh Fermin, ergazoobi, Majormachina, mario90, Mischievous Marc, pifpaf, playagmes169, Sarwex, StarWolf3000, TheMorganah, Tutubi, wye - Guests: 185 - Bots: 94
Users: 65,930 (2,192 active)
Latest user: SummerTuner

Gun

SMW Sprites → Gun

Submission Details

Name: Gun
Author: NerDose
Added:
Tool: PIXI
Type: Standard
Dynamic: No
Disassembly: No
Includes GFX: Yes
Description: a gun sprite that acts as a (sort of) carriable sprite, which means you cannot carry any other sprite or use Yoshi if you want to use it.

It has customizable cooldown time, recoil forces, bullet speeds, and disarm button (default is select), you will also lose this weapon when you beat a level, take damage or die.

The bullets themselves act as kicked shells, they will kill sprites and activate blocks from below and from the sides but they will also hurt the player if not hit from above.

IMPORTANT: remember to write the bullet sprite's PIXI number in gun.asm's !bulletSprite variable.

if unintended behavior occurs, try updating PIXI to the latest version



V 1.1 added the possibility to use coins as ammo with the option to set how many coins you lose after firing a bullet
Tags: boost lorom pacifist physics sa1
Comments: 22 (jump to comments)
Rating:
0.0 (0 ratings)
No rating
Download 6.87 KiB | 592 downloads

Screenshots

View all

Comments (22)

SonicToMarionofake Link
I'm not sure how to get the gun to spawn in. When I spawn the sprite it's the bullet. I'm new to inserting sprites
Rykon-V73 Link
Originally posted by Brasil man
can i stop this knockback in asm?

Code
LostXSpeeds:
db $E0,$20

The X knockback has to do with this code.
Taffy Link
MARIO GUN

MARIO GUN
Brasil man Link
can i stop this knockback in asm?
 Fernap Link
Tested with:
- Lunar Magic 3.33
- SA-1 Pack 1.40
- Snes9x 1.60, Bsnes-plus 05
- Pixi 1.32

Notes:
- First of all, apologies that this took so long to moderate. It's more or less functional, so accepting, but with a little hesitation. There's generally a lack of documentation on this for the end user. For example, there are quite a few defines and tables that can be edited by the user (and some which probably shouldn't be), but their functions aren't clear because there are no instructions/comments; this ideally should get added in. It might also be good for the sound effect to be settable by the user via a define as well.

- Added some missing |!banks for fastrom support.
- Converted the main sprite's .cfg file to a .json instead (the bullet remains a .cfg since it's not meant to be placed in a level directly)
- Removed a stray extra RTL in the bullet sprite
Soul Link
When is this going to get approved?
Kamikaizo Link
I can't seem to get the coin currency to work. Everything works fine apart from that. What does !BulletNum need to be set to? I currently have it set to my Bullet PIXI sprite slot and I think this may be where I'm going wrong because !bulletSprite already takes care of that. Please help, I'm dying to use this!
buggy789 Link
Getting Pizza Tower vibes from this.
The_Uber_Camper Link
For anyone having trouble getting the bullet to spawn:

In my experience the gunBullet.cfg MUST be inserted as 01, if it's inserted as anything else the gun will not spawn the correct sprite, even if you have the variable properly set in the gun.cfg.
Sokobansolver Link
What if I want Mario to keep the gun even after taking damage?
Soul Link
11/10 idea
Final Theory Link
Kid: Can I get Doom SNES?
Mom: No dear that is a violent gun game.
Kid: What can I get then?
Mom: How about Super Mario World, its family friendly. No guns at all.
SMW:
NerDose Author Link
Originally posted by D_jolt
For some reasons, I can't make the bullet itself work. I can use the gun itself but I can't make it shoot a bullet.

I did try to change the !bulletSprite variable to 31 (which is the number of the sprite in list.txt for pixi) but it didn't work. Although, I did manage to make it shoot another sprite by changing the !BulletNum variable to another value, but even with that, not the bullet itself.

So, is there something I'm missing? Some help would be really appreciated!


should've said it earlier but this sprite works only with the latest version of PIXI
Gamet2004 Link
This is beautiful
D_jolt Link
For some reasons, I can't make the bullet itself work. I can use the gun itself but I can't make it shoot a bullet.

I did try to change the !bulletSprite variable to 31 (which is the number of the sprite in list.txt for pixi) but it didn't work. Although, I did manage to make it shoot another sprite by changing the !BulletNum variable to another value, but even with that, not the bullet itself.

So, is there something I'm missing? Some help would be really appreciated!
Final Theory Link
Do a 4 player multiplayer single screen mini game where each player has a gun and you simply shoot each other.
simon.caio Link
This sprite opens up interesting ideas and setups! I noticed that when looking left and pressing up the gfx is not mirrored..and also when pressing down its off by a pixel or so (?) In the gfx that I draw it is more visible....
spooonsss Link
Looks neat. I'd suggest checking if the bullet sprite is offscreen before spawning smoke sprites though
HammerBrother Link
Does it has limited ammo feature too?
bersi Link
Amazing sprite, having a lot of fun with it!
Russ Link
Which slot does the included ExGFX file go into? Seems cool regardless!
NerDose Author Link
Originally posted by Russ
Which slot does the included ExGFX file go into? Seems cool regardless!
SP4, sorry i didn't specify