| |||
Views: 88,516,818 |
Main | FAQ | Uploader | IRC chat | Radio | Memberlist | Active users | Latest posts | Calendar | Stats | Online users | Search | 05-03-24 12:22 AM |
|
Guest: Register | Login |
0 users currently in SMW Hacking | 2 guests |
Main - SMW Hacking - ASM Hack\Custom Block\Custom Sprite request thread | New thread | New reply |
koala_knight |
| ||
Buzzy Beetle Level: 44 Posts: 73/384 EXP: 591553 Next: 19732 Since: 06-01-07 From: Miami Last post: 4132 days Last view: 4120 days |
oh. OK. Thanks for clearing that up!
Edit: tried, but trasm.exe isn't giving producing any files at all. Not sure why as everything seems to be put together correctly. Edit2: I got the block made and inserted (thanks to boingboingsplat), but there's one glitch. It works correctly except that it also triggers the block if I fall through it, not just when I hit it from below. Could there be another setting I should use in Block Tool? |
Buu-Huu |
| ||
Level: 26 Posts: 52/113 EXP: 93257 Next: 9018 Since: 11-01-07 Last post: 5417 days Last view: 5343 days |
If you want to have the block just acting when you hit it from below, set all offsets to -1 except "Below Offset", that has to be set to 0. |
koala_knight |
| ||
Buzzy Beetle Level: 44 Posts: 76/384 EXP: 591553 Next: 19732 Since: 06-01-07 From: Miami Last post: 4132 days Last view: 4120 days |
It is set up that way. However it still triggers as I pass down through it for some reason. Maybe I have to set the "below offset" to something other than 0? |
Bio |
| ||
Red Paragoomba Level: 19 Posts: 54/58 EXP: 35012 Next: 765 Since: 02-19-07 Last post: 5840 days Last view: 5703 days |
set it to -1 if you don't want it to trigger, this is the same for all other offset |
koala_knight |
| ||
Buzzy Beetle Level: 44 Posts: 78/384 EXP: 591553 Next: 19732 Since: 06-01-07 From: Miami Last post: 4132 days Last view: 4120 days |
But then it doesn't ever trigger. It needs to trigger if Mario is coming up from below.
I've been messing with the code pieguy gave me and the only thing that might work is a branch that test Mario's Y speed. I tried it with Mario's direction, but discovered the RAM address I was testing for is Mario's FACING direction, not his absolute direction. this is what I have: PHA LDA $7E0076 ;Mario's direction CMP #$01 ;direction to check for ;00=right, 01=left, BNE NoExecute ;branch if not equal LDY #$01 LDA #$26 ;act like block 126 STA $1693 NoExecute: PLA RTS I'm thinking this might work better: PHA LDA $7E007D ;Mario's Y speed CMP #$yy ;speed to check for BGE/BLT NoExecute ;branch if greater/less (not sure which yet) LDY #$01 LDA #$26 ;act like block 126 STA $1693 NoExecute: PLA RTS I need a way to make sure that Mario only interacts with the block from below. Edit: This should be working... PHA LDA $7E007D ;Mario's Y speed CMP #$80 ;Y speed to check for ;01-7F=falling, 80-FF=rising BLT NoExecute ;branch if less than LDY #$01 LDA #$26 ;act like block 126 STA $1693 NoExecute: PLA RTS Only below offset is set to 0, all others are -1. ...but it isn't responding to Mario at all. |
DarthRiko |
| ||
Red Koopa Level: 28 Posts: 74/137 EXP: 125043 Next: 6295 Since: 09-09-07 Last post: 5910 days Last view: 5521 days |
I need someone to make me a custom block that acts like the sensitive brick (no-bounce) only it only breaks when touched by a sprite other than Mario. |
koala_knight |
| ||
Buzzy Beetle Level: 44 Posts: 80/384 EXP: 591553 Next: 19732 Since: 06-01-07 From: Miami Last post: 4132 days Last view: 4120 days |
I tried, but I could only get it to break the block Mario stood on whenever a sprite touched the sensitive brick. =(
"Huh?" indeed! I switched the values around in Block Tool. |
DarthRiko |
| ||
Red Koopa Level: 28 Posts: 81/137 EXP: 125043 Next: 6295 Since: 09-09-07 Last post: 5910 days Last view: 5521 days |
huh? |
pieguy1732 |
| ||
Ptooie Note: I wasn't here because I wasn't here, not because someone switched the 7 and the 3. Level: 84 Posts: 397/1711 EXP: 5465561 Next: 196391 Since: 01-04-08 Last post: 5023 days Last view: 4953 days |
Assuming (from what you've said) how the sensitive block works, there are two options:
1. Change it so that it loads the sprite's position instead of Mario's. 2. Use a custom sprite instead of a block. ____________________ "There are 3 types of people in this world: Those who can count and those who can't." |
DarthRiko |
| ||
Red Koopa Level: 28 Posts: 86/137 EXP: 125043 Next: 6295 Since: 09-09-07 Last post: 5910 days Last view: 5521 days |
Huh, no! What I want is:
1. A block pretty much like the sensitive block (no-bounce) 2. Doesn't break when Mario touches it 3. Breaks instantly when any other sprite does Another good comparison would be the sprite breakable block, only different. Wait, who are you talking to? |
pieguy1732 |
| ||
Ptooie Note: I wasn't here because I wasn't here, not because someone switched the 7 and the 3. Level: 84 Posts: 399/1711 EXP: 5465561 Next: 196391 Since: 01-04-08 Last post: 5023 days Last view: 4953 days |
Uh...what I mentioned would do that. ____________________ "There are 3 types of people in this world: Those who can count and those who can't." |
DarthRiko |
| ||
Red Koopa Level: 28 Posts: 87/137 EXP: 125043 Next: 6295 Since: 09-09-07 Last post: 5910 days Last view: 5521 days |
it is your number two I don't like. I want an actual block, not a sprite. |
pieguy1732 |
| ||
Ptooie Note: I wasn't here because I wasn't here, not because someone switched the 7 and the 3. Level: 84 Posts: 457/1711 EXP: 5465561 Next: 196391 Since: 01-04-08 Last post: 5023 days Last view: 4953 days |
I request a bullet bill that bounces off of walls (like the yellow one in YI, but only at 45-degree angles). I'd attempt it myself, but I don't know anything about custom sprites. D: ____________________ "There are 3 types of people in this world: Those who can count and those who can't." |
Eymerich |
| ||
Goomba Level: 13 Posts: 15/24 EXP: 9062 Next: 1205 Since: 01-26-08 From: Milan Last post: 5928 days Last view: 5925 days |
wouldn't the diagonal fireball do the work if you change its graphics to the bullet's ones? ____________________ °O° The Refresh button won't change your life. °O° |
koala_knight |
| ||
Buzzy Beetle Level: 44 Posts: 95/384 EXP: 591553 Next: 19732 Since: 06-01-07 From: Miami Last post: 4132 days Last view: 4120 days |
Except you wouldn't be able to stomp it. |
darklink898 |
| ||
Paratroopa Level: 30 Posts: 142/158 EXP: 155749 Next: 10120 Since: 07-01-07 From: Enhasa Last post: 5875 days Last view: 5667 days |
koala_knight |
| ||
Buzzy Beetle Level: 44 Posts: 97/384 EXP: 591553 Next: 19732 Since: 06-01-07 From: Miami Last post: 4132 days Last view: 4120 days |
In case anyone wants it, this is the code that makes a given block act like one of the invisible ? blocks:
PHA ;PusH Accumulator LDA $007D ;Mario's Y speed CMP #$80 ;Y speed to check for ;01-7F=falling, 80-FF=rising. BMI NoExec ;Branch if MInus LDY #$01 ;act like block high byte LDA #$26 ;act like block low byte (01+26=0126) STA $1693 NoExec: PLA ;PulL Accumulator RTS ;Return To Sunroutine Once again thanks to pieguy1372 for the initial code. Also, thanks to Sukasa for his ass-kick tutorial. Edit: Forgot to add all settings are -1 except below which is 0. |
cosmo1215 |
| ||
Red Goomba Level: 16 Posts: 4/40 EXP: 19490 Next: 766 Since: 02-01-08 From: Evergreen Terrace 180, Springfield USA Last post: 5619 days Last view: 4853 days |
My sprite request is a pipe dweling piranha plant that shoots multiple fireballs to mario direction, and if is possible that it is hide when mario is near of the pipe, and that it returns to leave when mario moves away. ____________________ This is a layout that only I can see |
Eymerich |
| ||
Goomba Level: 13 Posts: 20/24 EXP: 9062 Next: 1205 Since: 01-26-08 From: Milan Last post: 5928 days Last view: 5925 days |
May I request too a shooter that spits a sprite with direction and speed similar to the fireballs shooted by the venus trap?
thx... ____________________ °O° The Refresh button won't change your life. °O° |
DarthRiko |
| ||
Red Koopa Level: 28 Posts: 93/137 EXP: 125043 Next: 6295 Since: 09-09-07 Last post: 5910 days Last view: 5521 days |
I still need a custom sprite breakable block. |
Main - SMW Hacking - ASM Hack\Custom Block\Custom Sprite request thread | New thread | New reply |
© 2005-2023 Acmlm, blackhole89, Xkeeper et al. |
MySQL - queries: 127, rows: 166/167, time: 0.022 seconds. |