23 users online: Anas,  Anorakun, Atomicatoms, Big Brawler, BlackNProud, Dark Prince, FrostyLosty, Gasterus155, GhostSnow, gusapno, HD_DankBaron, Heitor Porfirio, JackBooWow248, JezJitzu,  LMNtals, Quinkerman, Reese,  Segment1Zone2, Shan, solgaleo35, Stivi, TCgamerboy2002, TS_N - Guests: 146 - Bots: 221
Users: 66,444 (2,343 active)
Latest user: npcpath

Reflecting Projectile Block

SMW Sprites → Reflecting Projectile Block

Submission Details

Name: Reflecting Projectile Block
Author: Erik
Tool: PIXI
Type: Standard
Dynamic: No
Disassembly: No
Includes GFX: No
Description: This sprite acts as a block that reflects enemy projectiles such as Pitchin' Chuck's baseballs in an horizontal or vertical axis. Projectiles reflected are, for now, extended sprites only; I see no reason to add support to other kinds of sprites.
Tags: block lorom projectile reflecting solid
Comments: 7 (jump to comments)
4.8 (5 ratings)
No rating
Download 16.23 KiB | 745 downloads


View all

Comments (7)

Romano338 Link
Out of curiosity, what makes it impossible (or very hard) to code as blocks? I'm surprised this is a sprite
 MarioFanGamer Link
You likely won't read this but the basic idea is that extended sprites first have to be modified to interact with blocks at all and only the fireball in the vanilla game does that.
TheBiob Link
Updated to use shared subroutines
Medic Link
Seems good now! Note that the names of the blocks are not the direction projectiles will bounce in, look at setup.png.
 Erik Author Link
Interesting coincidence, lol
also oops, fixed. this is what happens when you are tired but keep coding, lol
TheBiob Link
Nice I was going to code them myself since I already had a Extended sprite On Off switch but now I don't have to.

Oh and btw you don't have a suboffscreen routine so your blocks never despawn.
Final Theory Link