Language…
7 users online: akawo, autisticsceptile1993, CroNo486, djEnby, JeepySol, signature_steve, xhsdf - Guests: 244 - Bots: 97
Users: 70,551 (2,460 active)
Latest user: Fares

Event Camera Scroll

SMW Patches → Event Camera Scroll

Submission Details

Name: Event Camera Scroll
Author: Kevin
Added:
Tool: Asar
Requires Free Space: Yes
Bug Fix: No
Featured: No
Description: This patch allows you to make the camera scroll to a specified location before running an event, and then return back to its original position afterwards. You can set a different position for every event, and of course set events to not scroll at all (also the effect only applies to the Main Overworld map for obvious reasons).
To use, just edit the tables in "event_camera_scroll_tables.asm", then patch "event_camera_scroll.asm".
Tags: lorom overworld sa-1 scroll
Comments: 5 (jump to comments)
Download 2.07 KiB | 299 downloads

Screenshots

Comments (5)

Hacks Maker Link
Dude, I didn't understand, I put it the way you said, I did the sum, but the camera still doesn't roll, for the destination, can you send a simplified example?
TheBourgyman Link
Works like a charm! The only bug I found was that the camera won't dock to the leftmost side of the overworld screen, since it has negative coordinates ($FFE0) and the patch will ignore all negative values ($8000-$FFFF).

I was able to have it work by replacing these lines (lines 79 and 80)

Code
    lda.l x_pos,x : sta $0C : bmi .continue
    lda.l y_pos,x : sta $0E : bmi .continue

with this

Code
    lda.l x_pos,x : sta $0C : cmp #$FFFF : beq .continue
    lda.l y_pos,x : sta $0E : cmp #$FFFF : beq .continue


This way, you can still use $FFFF as a "no camera movement" value.

Also, inserting this using Callisto will give out nested RATS error for me. This is probably specific to my hack and/or to Callisto, but commenting out tables for events 20-77 solved it for me (I don't plan on using that many events anyway). Inserting it with Asar worked fine.
 MarioFanGamer Link
Moderated with:
  • Lunar Magic 3.30
  • SA-1 Pack v1.40
  • Asar 1.81
  • BSNES v115
I though the position gets set automatically instead of requiring the use of a table. Nonetheless, this is an interesting patch and can make e.g. the earthquake scene more dramatic.

One thing to note for users: The camera only scrolls when the path appears but not when a level tile (e.g. a castle) gets destroyed.
Mr-Ace Link
Sweet, thanks!
BabaYegha Link
:O