Language…
19 users online:  Anorakun,  bebn legg, brickblock369, Coburn64, Cote de Boeuf, CourtlyHades296, ElectroWellyGames, gabriel09213535, Heitor Porfirio, Knetog, lean4, Mariotag1, MarsAmpere,  Nameless, PaceTheAce, SilverYoshiHD, Sixcorby, SmashNcrab, Stucat - Guests: 134 - Bots: 139
Users: 58,868 (2,241 active)
Latest user: gerbesfreshforeveryone

POW/P-Switch

SMW Sprites → POW/P-Switch

Submission Details

Name: POW/P-Switch
Author: Mellonpizza
Added:
Version History: View
Tool: PIXI
Type: Standard
Dynamic: No
Disassembly: Yes
Includes GFX: No
Description: This is a disassembly of sprite 3E, the POW/P-Switch.

Extra bit is used to determine whether the switch will be blue, or silver.

This includes the full routines for handling the sprite while it is not being carried and susceptible to physics, and while the sprite is being carried by the player. For ASM hackers you should be able to tweak the sprite to a fair degree and use as a base for custom objects.

Keep in mind that unless you have a patch to allow custom sprites to be carried across sublevel transitions, this sprite will become a vanilla p-switch upon one.
Tags: carryable item lorom p-switch pow sa-1
Comments: 5 (jump to comments)
Rating:
5.0 (1 rating)
No rating
Download 6.46 KiB | 797 downloads

Screenshots

View all

Comments (5)

Hiroki Link
nice sprite! thx
Samie Zuccati Link
Originally posted by Romano338
Is there anything I can change in the file to make it non-carryable?
Maybe deleting "jsr Carried_Sprite_Main"?
And also to not play the PSwitch music, just let the level music play? (although I'd assume this is more in the pswitch is pressed routine than in the sprite itself)


On line 192 of the code replace this
Code
lda $1470|!Base2 : ora !PlayerRideYoshi : bne .No_Carry

with this
Code
lda $1470|!Base2 : ora !PlayerRideYoshi : bra .No_Carry


If you want to remove the music you have to edit the "tweaks" file in addmusick
Nicoke42 Link
Is it known to crash in snes mini?
Romano338 Link
Is there anything I can change in the file to make it non-carryable?
Maybe deleting "jsr Carried_Sprite_Main"?
And also to not play the PSwitch music, just let the level music play? (although I'd assume this is more in the pswitch is pressed routine than in the sprite itself)
HammerBrother From older version: POW/P-Switch Link
Looking at the screenshot, it appears that the P-switches have their X speed set to a number between #$01 to #$30 after hitting the bottom of blocks, even when the player kicks it straight up.