Banner
Views: 235,805,753
Time: 2013-05-18 07:36:14 PM
20 users online: aj6666, o DDM295, Dipalon, ErikAlay, o imamelia, Kaijyuu, KY2010, Magiluigi, MarioBros980, MaxodeX, o Maxx, ninja boy, Phazon, phenolatukas, Pixels, PlzHitChris, o Richard Nixon, o ShadowPhoenix, TomPhanto, wwemario12345 - Guests: 37 - Bots: 17Users: 22,838 (1,283 active)
Latest: BobNewbie
Tip: The multiple midpoints patch can also be used to move a level's normal midpoint.
Posts by ninja boy
ninja boy's Profile - Posts by ninja boy
Pages: « 1 ... 4 5 6 7 8 ... 107 108 »
(restricted)
I haven't had a chance to test this out but i would like to know if my code is correct [see above post].
(restricted)
(restricted)
So I'm just learning ASM and using a very simple block and a couple things I found around the internet i came up with this.

Code
JMP Return : JMP Return :JMP Return : JMP Sprite : JMP Sprite : JMP Return : JMP Return Sprite: LDA #$02 ;\ make Mario have a cape STA $19 ;/ Return: RTL ; return


This should make Mario have a feather when a sprite touches the block, what I want to know is my code correct? Also how do i find more addresses for LDA? I also do know making LDA $02 will load RAM address 7E0002. I'm just not fully sure how the registries work yet.
Last edited on 2009-10-04 10:32:23 AM by ninja boy.
Originally posted by Domiok
The Thunder seems to be right. Vertical scrolling has some problems. Anyway, are you positive that layer 2 automatically prevents a backround? If so I could always use a cave section or something of the sort, but it would be useful to have it in the main segment.


Seeing as normally the BG is on layer 2 using a layer 2 enabled level causing the game to dump the BG for interactible objects on layer 2. You can however use Layer 3 for a BG on certian level types I know caves and the castle have these also water ones have fish but thats not really a BG.
thanks I'll make sure to change that also out of curiousity i've been looking through the forums and everywere else but I can't seem to really find any registry stuff. Is all of it just in All.log or is there something I'm missing?
Yeah I did mean the RAM map I was just a little confussed by how #$02 was achived because well I found something online saying that #$02 was for the cape and I just found it in the RAM map. my next question is how are block offsets used? i know they tell the block to only act the way the code is if touched on certain sides but what do the different numbers mean?
(restricted)
Originally posted by Kaijyuu
If you're using BTSD you needn't worry about offsets. That's done by the labels at the top of your code.


Ok thanks for telling me. I know i wrote my code for BTSD but to be honest i really haven't used it before i just know it's better due to not slowing the game down.
So I was able to test my block in game and well it inserts correctly but when a sprite or mario touches it the game breaks
Originally posted by RPG Hacker
So did you do what Ersanio said and put a space behind the : at
Code
[...] JMP Return :JMP Return [...]
?

It seems like just a little thing, but it may be the reason that cause the block to crash.

Also you inserted it with Block Tool Super Deluxe and chose ASM insertion, right?


I didn't post my fixed code but yes I fixed that typo and yes I did use BTSD as ASM
There are no patches a couple simple Hex edits only editing sprite mapping though. I inserted it to block 200.
With how good your sprites are if you give a tutorial or even just tips on how you make them I think that would great.
Originally posted by Kaijyuu
I forget; is it RTS or RTL with BTSD blocks?


It's RTL
Ok well here's what I got while studying other blocks

This one gives Mario a cape if he touches it BUT it crashes the game when I hit it with the cape spin.
Code
JMP MarioBelow : JMP MarioAbove : JMP MarioSide : JMP Return : JMP Return : JMP MarioCape : JMP MarioFireBall MarioBelow: MarioAbove: MarioSide: LDA #$02 ;\ make Mario have a cape STA $19 ;/ RTL Return: RTL ; return


This one now works and gives mario a cape BUT crashes the game when Mario touches it.
Code
JMP Retun : JMP Retun : JMP Retun : JMP Sprite : JMP Sprite : JMP Return : JMP Return Sprite: LDA #$02 ;\ make Mario have a cape STA $19 ;/ RTL Return: RTL ; return


I'm assuming I'm just missing something simple I'm just not sure what.
Originally posted by Vic Rattlehead
Code
JMP Retun :


You seem to have misspelled the label names for the Mario offsets.


Aw stupid mistakes and not catching them thank you for pointing that out.

So the block that gives Mario a cape if a sprite touches it works fine now but the block that gives a cape if mario touches it still crashes the game if I hit it with a cape spin.
Last edited on 2009-09-17 05:31:34 PM by ninja boy.
Aw ok thanks didn't realize I needed the Mariocape and Mariofireball things at the end. I tested it and it works perfectly fine.

Also what is the difference between

This

Code
$7E:0DC2 Reserved Item(current player) 02 = Fire Flower, 03 = Star, 04 = Cape


And This

Code
$7E:0DBC Mario's Item Box 00=Nothing; 01=Mushroom; 02=Cape; 03=Fire Flower


???
Last edited on 2009-09-17 10:51:30 PM by ninja boy.
Next question for
Code
$7E:0019 Powerup 00=Small Mario; 01=Super Mario; 02=Cape Mario; 03=Fire Mario


If I put #$04 would that give mario a star or would that just crash?
I know I'm no were advanced enough in ASM to do this but using the Custom Powerups that are based on the original SMW ones is it possible to make them say give Mario a fireflower when touched but when mario is on yoshi makes yoshi red?
Pages: « 1 ... 4 5 6 7 8 ... 107 108 »
ninja boy's Profile - Posts by ninja boy

The purpose of this site is not to distribute copyrighted material, but to honor one of our favourite games.

Copyright © 2005 - 2013 - SMW Central
Legal Information - Link To Us


Total queries: 27

Menu