Banner
Views: 783,809,693
Time:
11 users online:  Deeke, Green Jerry, hash, MORC, NextTactics, Pitchin Luigi, Redstonetech181,  Shiny Ninetales, Teows, xAsianjay, Xyspade - Guests: 36 - Bots: 325 Users: 41,004 (1,571 active)
Latest: Koops
Tip: ExAnimation also works on sprites!Not logged in.
Posts by badummzi
badummzi's Profile - Posts by badummzi
Pages: « 1 »
Hey! :D I'm currently having a problem with one of my projects.

The problem is the following:
I got an if command in uberASM, which doesn't work. It should get executed, but never does anything. Can you guys spot, what the error is?

Code
	if !timer < 80 then
	LDA !timer
	CLC
	ADC #$50
	endif


!timer is $0DA1

What I wanted to achieve with this code is, that when the timer get's set and it's below 50 (Hex), A value should be added to make it 50 ;)

I'm also not sure, how to make the '80' a Hex Value. Maybe you could explain me that? :D

Thanks in advance!

-badummzi

--------------------
I don't know, what I should put here.
What I thought was wrong, was a mistake from my site... As @WhiteYoshiEgg said, your hijacking place was completely fine ;)

EDIT: I tried to patch that and it also resulted in a broken overworld ... Maybe the problem lies within the clear of the level?

EDIT 2: I doesn't seem, that i can find the problem... Sorry! :(

Result: I'm probably not good enough, to find the problem to this... :/ Maybe someone else can help you! :D

--------------------
I don't know, what I should put here.
Oof, yeah right O_O I was wrong with that!

Of course $009C67 should work!

Thanks @WhiteYoshiEgg! ;)

Do you have any idea, where the problem could be?

--------------------
I don't know, what I should put here.
Thanks @MarioFanGamer ! :D

I knew, that there were if commands in ASM, but i didn't know exactly, how they work ;) I didn't know that that only works in asar! :D

BCC as a command, was something, that i didn't know exists, but now I know!

Thanks for the help! :D

-badummzi

--------------------
I don't know, what I should put here.
Hey! :D I have a quick question:

In some ASM i saw this weird |!addr after something like STZ $0867
I googled about it and couldn't find something. Now I want to know, what that does, and if it is important and I should use it to ;)

Thanks in advance!

-badummzi

--------------------
I don't know, what I should put here.
@Shiny Ninetales and @WhiteYoshiEgg thank you for the explanation! :) I didn't know that! That's something I'll use in the future! ;)

-badummzi

--------------------
I don't know, what I should put here.
Hey! :D I have a little longer question:

I created this patch, that is supposed, to switch from Mario to Luigi and back, depending on $0DB3.

I have not that much knowledge on patches and i can't seem to find the error!

I hope you guys can help me again! :D

Code
ORG $008FC5
autoclean JSL patch
NOP

freecode

patch:
JSR.W $009079
LDA.W $0DB3
BNE Mario
RTL

Mario:
LDX.B #$00
JML Mario2
Mario2:
LDA.W $008DF5,X
STA.W $7E0EF9,X
DEX
BPL Mario2
LDA.W $0DB3
RTL


Thanks in advance!

-badummzi

--------------------
I don't know, what I should put here.
I think you're getting something wrong here...

The camera already follows Marios Y-Position, when you set the Vertical-Scrolling to enabled.

To do that, go to level 00F just click on the Mario Head in Lunar Magic and change 'Layer 1 (FG) Vertical Scrolling' to 'Vertical Scroll at Will'. That will make the camera always follow Marios Y-Position.

If you're talking about a 'smoother' camera, there is a patch out there, which fixes this problem. ( https://www.smwcentral.net/?p=section&a=details&id=19676 )

I hope I could help!

-badummzi

--------------------
I don't know, what I should put here.
Thanks for your help @WhiteYoshiEgg ! :D

I tried applying everything you said, but my problem was still there.
After loading the 'Nintendo Presents' Logo, the screen went black and the game crashed.
I tried, doing some other stuff, but nothing worked. In the end I tried doing the same with uberASM and everything went fine!

My theory is: The game is writing the 'Mario' every Frame to the status bar, even when the status bar isn't displayed and is used for other code.

I'm pretty glad, that stuff worked in uberASM ;)

But anyways: Thank you so much for your help! I really appreciate it! :D

-badummzi

--------------------
I don't know, what I should put here.
This tutorial really helped me out a lot! :D
I'm hoping for future updates ;)
With this tutorial i was able to create my first sprite!

--------------------
I don't know, what I should put here.
Pages: « 1 »
badummzi's Profile - Posts by badummzi

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

Copyright © 2005 - 2019 - SMW Central
Legal Information - Privacy Policy - Link To Us


Total queries: 7

Menu

Follow Us On

  • YouTube
  • Twitch
  • Twitter

Affiliates

  • Talkhaus
  • SMBX Community
  • GTx0
  • Super Luigi Bros
  • ROMhacking.net
  • MFGG
  • Gaming Reinvented