• Welcome to Final Fantasy Hacktics. Please login or sign up.
 
March 28, 2024, 02:07:18 pm

News:

Please use .png instead of .bmp when uploading unfinished sprites to the forum!


Event Editing - Camera Movement Problems

Started by Arsipsik, March 12, 2013, 09:26:30 pm

Arsipsik

Hey guys. I am brand new here but having been trolling the forums and learning to do some modding.

I recently started doing some event editing but am having a few issues with camera movement.

In a nutshell, I have Ramza standing in the 099 - Main Street of Lesalia map at x=8 y=3. I have him travel a few tiles forward and then back to his original position.

However, when he moves forward I tried having the camera following him by moving it up the Y axis a few tiles. Then when he comes back the camera would return to its original position as well.

The issue I am having is that on the camera movement when he walks forward the camera moves in the wrong direction. It also seems that whatever changes I make, it doesn't seem to affect that first camera move. The camera command in bold seems to be where I am having problems.

Any ideas what i'm doing wrong here?

Offset(x00004000)

UnitAnim(x01,x00,x02,x00,x00)

{63}(rC9)
//Fade in to map
Camera(-00000,-00000,-00000,+00302,-00000,-00000,+04096,-00000)
Camera(-00000,-00000,-00000,+00302,-00000,-00000,+04096,-00000)
{4D}(r78)
Camera(+00896,-00000,+00336,+00302,+00512,-00000,+04096,+00360)
WaitForInstruction(x04,x00)
{63}(rAA)

Focus(x01,x00,x01,x00,x00)
WaitForInstruction(x04,x00)

DisplayMessage(x10,x11,x0001,x01,x00,x00,+00000,+00000,+00000,x03)
WaitForInstruction(x01,x00)

WalkTo(x01,x00,008,010,x00,x00,+008,x01)
Camera(+00896,-00000,+00836,+00302,+00512,-00000,+04096,+00360)
WaitWalk(x01,x00)

WalkTo(x01,x00,008,002,x00,x00,+008,x01)
Camera(+00896,-00000,+00336,+00302,+00512,-00000,+04096,+00360)
WaitWalk(x01,x00)



RotateUnit(x01,x00,x07,x00,x00,000)
WaitRotateUnit(x01,x00)

UnitAnim(x01,x00,x02,x00,x00)
WaitForInstruction(x04,x00)

DisplayMessage(x10,x11,x0002,x01,x00,x00,+00000,+00000,+00000,x03)
WaitForInstruction(x01,x00)

Wait(00200)
EventEnd()

//INSTRUCTION SECTION END -  TEXT START

//Message x01
{font:08}{This is a test event!{end}

//Message x02
{font:08}{Ramza}{br}
{font:00}That's all folks!{end}
  • Modding version: PSX

3lric

Check out my (WIP) Tutorial on event editing. I covered Camera commands in that.
  • Modding version: PSX

Arsipsik

Thanks for the reply, Elric. I did follow your 101 tutorial when I was creating the event but I'm thinking I may have missed something. I'll review your tutorial and do some testing tonight.
  • Modding version: PSX

Arsipsik

March 13, 2013, 08:40:42 pm #3 Last Edit: March 14, 2013, 09:05:35 am by Arsipsik
Hm, still no dice. I am doing a +600 on the Y-axis only but the camera continues to move in the direction I don't want it to. I even tried doing -600 and the camera moves in the exact same direction, as if I didn't change anything. It's the strangest thing.

Edit: Adding a visual reference. I expect the camera to move in the direction of the red arrow but no matter what I do it moves in the yellow arrow direction.

  • Modding version: PSX

Arsipsik

Success! :mrgreen: Seems that for whatever reason I need some extra camera commands.

QuoteCamera(+00896,-00000,+00336,+00302,+00512,-00000,+04096,+00001)
Camera(+00896,-00000,+00336,+00302,+00512,-00000,+04096,+00001)
{4D}(r78)
Camera(+00896,-00000,+01236,+00302,+00512,-00000,+04096,+00220)


The first two camera commands and the {4D}(r78) seem necessary for whatever reason. The command in bold is where I want the camera to move.

Not entirely sure why that is needed but all seems to be working now.

My full event is below for those who are curious.

Thanks all!

Offset(x00004000)

UnitAnim(x01,x00,x02,x00,x00)

{63}(rC9)
//Fade in to map
Camera(+00896,-00000,+00336,+00302,+00512,-00000,+04096,+00000)
Camera(+00896,-00000,+00336,+00302,+00512,-00000,+04096,+00000)
{4D}(r78)
Camera(+00896,-00000,+00336,+00302,+00512,-00000,+04096,+00160)
WaitForInstruction(x04,x00)
{63}(rAA)

Focus(x01,x00,x01,x00,x00)
WaitForInstruction(x04,x00)

DisplayMessage(x10,x11,x0001,x01,x00,x00,+00000,+00000,+00000,x03)
WaitForInstruction(x01,x00)

Camera(+00896,-00000,+00336,+00302,+00512,-00000,+04096,+00001)
Camera(+00896,-00000,+00336,+00302,+00512,-00000,+04096,+00001)
{4D}(r78)
Camera(+00896,-00000,+01236,+00302,+00512,-00000,+04096,+00220)

WalkTo(x01,x00,008,010,x00,x00,+008,x01)
WaitWalk(x01,x00)

Camera(+00896,-00000,+00336,+00302,+00512,-00000,+04096,+00220)

WalkTo(x01,x00,008,002,x00,x00,+008,x01)
WaitWalk(x01,x00)

RotateUnit(x01,x00,x07,x00,x00,000)
WaitRotateUnit(x01,x00)

UnitAnim(x01,x00,x02,x00,x00)
WaitForInstruction(x04,x00)

DisplayMessage(x10,x11,x0002,x01,x00,x00,+00000,+00000,+00000,x03)
WaitForInstruction(x01,x00)

Wait(00200)
EventEnd()

//INSTRUCTION SECTION END -  TEXT START

//Message x01
{font:08}{Ramza}{br}
{font:08}This is a test event!{end}

//Message x02
{font:08}{Ramza}{br}
{font:00}That's all folks!{end}
  • Modding version: PSX

3lric

PM me on IRC in about 3 hours if you can. I can explain why that happened. Also please use the edit button next time instead of a triple post. Thank You and welcome to FFH
  • Modding version: PSX