Banner
Views: 853,020,482
Time:
25 users online: B2De, BlueSkye209, brickblock369, ConfettiBiscuits, Doopu, earthmeLon, Evernn, ExONightZ, Green Jerry, Hooded Edge, Ice Man, Infinity, JDC, Jv341211,  Koopster, Miscalc, msi810, Neexy, OmegaLuigi, Romano338, Sancles, Stunyboy, Twiced_, Valkyria,  xHF01x - Guests: 77 - Bots: 73 Users: 47,044 (2,524 active)
Latest: Jv341211
Tip: Fix any errors you see before releasing any demos; "I'll fix it later" isn't a good excuse.Not logged in.
64x64 Sprite Problem
Forum Index - SMW Hacking - SMW Hacking Help - ASM & Related Topics - 64x64 Sprite Problem
Pages: « 1 »
Well, my friend, manuz, and I are trying to make a 64x64 banzai bill, but see whats happend:

<object style="height: 344px; width: 425px"><param name="movie" value="http://www.youtube.com/v/RzLCBXVlIJk"><param name="allowFullScreen" value="true"><param name="allowScriptAccess" value="always"><embed src="http://www.youtube.com/v/RzLCBXVlIJk" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="425" height="344"></object>

The sprite graphics are messed when it's going to right... Can someone help me? Here is the original code:

(please, ignore the grammar error, we are brazilians..)

http://bin.smwcentral.net/20904/yellow_bullet_bill.asm


You didn't offset the X position based on direction. At the part in your code you add(or subtract) from the tiles X pos, you need to check your direction. If you are facing right (or left) you need to subtract(or add) from the tiles Xpos.
Code
TILEMAP	 dcb $80,$82,$84,$86,$A0,$A2,$A4,$A6,$C0,$C2,$C4,$C6,$E0,$E2,$E4,$E6
		dcb $80,$82,$84,$86,$A0,$A2,$A4,$A6,$C0,$C2,$C4,$C6,$E0,$E2,$E4,$E6

The error is in the Tilemap. try this instead
Code
TILEMAP		dcb $86,$84,$82,$80	; facing right
		dcb $EE,$CE,$88,$A0
		dcb $EE,$CE,$C2,$C0
		dcb $86,$84,$AE,$8E

		dcb $80,$82,$84,$86	; facing left
		dcb $A0,$88,$CE,$EE
		dcb $C0,$C2,$CE,$EE
		dcb $8E,$AE,$84,$86

If it's doesn't face you when you test it, switch the 2 tilemaps.

FE: real, ultimate POWER!!!
I change my layout every 4-5 months
Pages: « 1 »
Forum Index - SMW Hacking - SMW Hacking Help - ASM & Related Topics - 64x64 Sprite Problem

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

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


Menu

Follow Us On

  • YouTube
  • Twitch
  • Twitter

Affiliates

  • Super Mario Bros. X Community
  • ROMhacking.net
  • Mario Fan Games Galaxy