Banner
Views: 568,838,189
Time: 2017-09-25 05:00:09 PM
11 users online: AntiDuck, EDIT3333, errorgfx, Golden Yoshi, o Lazy, NeXuS15, SubconsciousEye, Super Stiviboy, Thomas, UTF, VilelaBot - Guests: 37 - Bots: 136Users: 32,524 (1,187 active)
Latest: phllame
Tip: Don't use glitched graphics.Not logged in.
Details for Screen constrain
SMW Patches - Screen constrain
File Name: Screen constrain
Added: 2017-05-14 04:08:27 AM
Authors: TheBiob
Tool: Asar
Requires Free Space: Yes
Bug Fix: No
Featured: No
Description: This patch will constrain the player's hitbox to inside the camera causing blocks that are placed on the edge of the screen to "extend" infinitely.

Useful for water levels and to prevent players from getting above the level.
Tags: blocks, extending, screen border
Download: Download - 771 bytes
57 downloads
  Submit Update
TheBiob
Well, I did the same and everything works perfectly fine so at least one of us did something wrong there.

Can you link a patch of a rom where that happens so I can look at it?
Posted by: TheBiob - 2017-07-06 10:48:07 AM
GreenHammerBro
I made my own patch: link. It also works with sprites for consistency.
Posted by: GreenHammerBro - 2017-07-06 01:44:36 AM
GreenHammerBro
There are no RAM conflicts, I used an autoscroll, “disable screen barrier via RAM” patch and uberasm tool to set the RAM to disable borders. I've also notice that when making a horizontal level wrap (the top of the level to the bottom), blocks at the edge of the screen applies, not the edge of level.
Posted by: GreenHammerBro - 2017-07-06 01:40:10 AM
TheBiob
Originally posted by GreenHammerBro
There is an issue where if you are using this patch with an autoscroll, the code still uses on-screen code and if a block is on the edge of the screen, will kill the player.

I can't reproduce that, everything works perfectly fine for me.
Are you sure you don't have any freeram conflicts?
Posted by: TheBiob - 2017-06-19 09:44:26 AM
GreenHammerBro
There is an issue where if you are using this patch with an autoscroll, the code still uses on-screen code and if a block is on the edge of the screen, will kill the player.
Posted by: GreenHammerBro - 2017-06-19 07:02:18 AM
Erik557
Works fine, altough grabbing throw blocks looks kind of weird if you're offscreen but not much can be done to fix that. It's still functional though so nice job!
Posted by: o Erik557 - 2017-05-14 04:08:26 AM
TheBiob
I changed it to either do it on the screen or the whole level depending on a flag. Restraint to screen is default (flag = 0) because I still find it more useful than restraining it to the whole level.
Posted by: TheBiob - 2017-04-11 12:16:43 PM
GreenHammerBro
Can you make a version of this, but for the whole level instead of the player's screen? Because it can cause weird things to happen should an ASM that has a cutscene that scrolls the screen (often makes the player goes offscreen).
Posted by: GreenHammerBro - 2017-04-06 02:57:31 AM
TheBiob
Originally posted by aCrowned
I "released" it in a C3 a few years back, but didn't submit it proper because I wasn't happy with the methods I used

Ah, I see. Still makes me wonder why I couldn't find it.

Originally posted by aCrowned
I did it the way I did not only because of collectibles, but also because I still wanted over-the-level secrets to be possible

Oh right. Yeah that's not really possible unless you move the camera one pixel up to leave space.

EDIT: Actually, you can work around that with a simple custom block:

Code
db $42
JMP s : JMP r : JMP s
JMP r : JMP r
JMP r : JMP r
JMP r : JMP s : JMP s

s:	REP #$20
	LDA $1C
	CMP $98
	SEP #$20
	BNE r
	LDA #$25
	STA $1693
	LDY #$00
r:	RTL


Players can walk over this tile just normal.
Posted by: TheBiob - 2017-03-25 09:19:48 PM
aCrowned
I "released" it in a C3 a few years back, but didn't submit it proper because I wasn't happy with the methods I used, since it needed a huge table of which tiles would block Mario and which wouldn't. It was also SA-1 only because I didn't know how to hybrid. I planned on revisiting it at some point, but now I don't have to. :) I should still fix the fancy Ninjis I released alongside that, though.

And I guess not having collectibles on the edges is a small price to pay for such a nice feature. The bottom row is hidden and the top one is usually obstructed by a HUD of sorts, anyway.

EDIT: I did it the way I did not only because of collectibles, but also because I still wanted over-the-level secrets to be possible, so corner and grass tiles wouldn't block Mario with my method. Also, slopes.
Posted by: o aCrowned - 2017-03-25 07:59:49 PM
TheBiob
Originally posted by aCrowned
I remember making this in the past

Huh interesting. Did you ever release that? I couldn't find anything like this.

Originally posted by aCrowned
I didn't try it, but does your patch play well with collectible blocks being placed on the edge of the screen?

Depends on what you mean.
The patch simply restrains the player's collision points to inside the screen essentially "extending" every collision from the last pixel visible on screen to where the player actually is.
Now, that does mean that you'd be able to collect collectibles way above/below the screen if they're on the edge. If that's what you're referring to then I guess they aren't working well together.
Posted by: TheBiob - 2017-03-25 09:13:52 AM
aCrowned
I remember making this in the past, but it worked very differently. Your method seems much easier to work with, mine would check for the top/bottom tile aligned with Mario and would hinder him if it was included in my blacklist.

I didn't try it, but does your patch play well with collectible blocks being placed on the edge of the screen?
Posted by: o aCrowned - 2017-03-24 09:23:15 PM
TheBiob
There are a few patches/codes that prevent walking/swimming under the level like "Pit Fix" which just moves the death barrier higher or "Floor generator" that prevents movement below the camera all together.

Though I couldn't find one that actually extends the blocks inifinitely so... If anyone knows of a patch that already does this I'll remove this one since we don't need two.
Posted by: TheBiob - 2017-02-26 04:36:46 PM
zacmario
I don't recall a patch like this, prehaps your thinking of the teleport if you fall off the screen? Both patches are SMBish?
Posted by: zacmario - 2017-02-26 04:09:34 PM
TheBiob
Well, I couldn't find one either so I just made one.
Could be that I missed something so if there really is a patch like this already here I'll just remove it.
Posted by: TheBiob - 2017-02-26 02:51:44 PM
Alcaro
I could swear we had a patch like this already? But I can't find it.
Posted by: Alcaro - 2017-02-26 02:11:17 PM

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

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


Total queries: 29

Menu

Follow Us On

  • Facebook
  • Twitter
  • YouTube

Affiliates

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